summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/support.lua
diff options
context:
space:
mode:
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