From 665a36326b092b14b6024f6e0d0dfaf2660b855a Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Mon, 15 Sep 2025 04:47:52 +0200 Subject: fix(C++ modules) fix culling --- xmake/rules/c++/modules/support.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmake/rules/c++/modules/support.lua b/xmake/rules/c++/modules/support.lua index 5ba12adef..cce8272c8 100644 --- a/xmake/rules/c++/modules/support.lua +++ b/xmake/rules/c++/modules/support.lua @@ -258,6 +258,12 @@ function can_be_culled(target, sourcefile) can_cull = can_cull and fileconfig.cull end end + if can_cull then + can_cull = false + if is_stdmodule or (fileconfig and fileconfig.external) then + can_cull = true + end + end return can_cull and not public end -- cgit v1.3.1