summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-07-21 19:08:24 +0200
committerArthur LAURENT <[email protected]>2024-07-21 19:08:24 +0200
commit7db73f18851c801d8eee42d5191de89e1b3f13af (patch)
tree194111a7f1408cc7efbb506a11ebb496b3adcb07
parent0314af9533bab0d687bc31a2c2cc7c97416fe814 (diff)
add a warning when a module is getting culled
-rw-r--r--xmake/rules/c++/modules/modules_support/dependency_scanner.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/modules_support/dependency_scanner.lua b/xmake/rules/c++/modules/modules_support/dependency_scanner.lua
index 6c513242b..66b00f421 100644
--- a/xmake/rules/c++/modules/modules_support/dependency_scanner.lua
+++ b/xmake/rules/c++/modules/modules_support/dependency_scanner.lua
@@ -430,6 +430,8 @@ function sort_modules_by_dependencies(target, objectfiles, modules)
local dont_cull = fileconfig and fileconfig.cull ~= nil and not fileconfig.cull
if not provide or public or dont_cull then
table.insert(result, objectfile)
+ else
+ wprint("%s has been culled because it's not consumed by its target nor flagged as a public module (add_files(\"xxx.cppm\", {public = true}))", cppfile)
end
else
table.insert(result, objectfile)