summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/support.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-09-15 04:47:52 +0200
committerArthur LAURENT <[email protected]>2025-09-18 07:07:26 +0200
commit665a36326b092b14b6024f6e0d0dfaf2660b855a (patch)
treebc4bc13cec8172f95002a716e064f24ed975f8d7 /xmake/rules/c++/modules/support.lua
parent213876242403c07495d4866de2f49ecfaf6fcfa9 (diff)
fix(C++ modules) fix culling
Diffstat (limited to 'xmake/rules/c++/modules/support.lua')
-rw-r--r--xmake/rules/c++/modules/support.lua6
1 files changed, 6 insertions, 0 deletions
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