summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/mapper.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-08-14 20:13:53 +0200
committerArthur LAURENT <[email protected]>2025-08-14 20:13:53 +0200
commit62832812855344adeb7c5d92240b2ea77b1594c9 (patch)
tree0ffeae1963fdd36b3018412a3b9d6ab953377b72 /xmake/rules/c++/modules/mapper.lua
parent84fcc1fd63aec5b6126f35806305326e4ecb936f (diff)
fix(c++ modules) fix public culled module incorrectly emiting a warning
Diffstat (limited to 'xmake/rules/c++/modules/mapper.lua')
-rw-r--r--xmake/rules/c++/modules/mapper.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/mapper.lua b/xmake/rules/c++/modules/mapper.lua
index d8e9075b4..2973a49c9 100644
--- a/xmake/rules/c++/modules/mapper.lua
+++ b/xmake/rules/c++/modules/mapper.lua
@@ -80,8 +80,8 @@ function feed(target, modules, sourcefiles)
-- replace target reused module by dep module
if reuse then
for _, sourcefile in ipairs(sourcefiles) do
- local external = support.is_external(target, sourcefile)
- if external then
+ local from_dep = support.is_from_dep(target, sourcefile)
+ if from_dep then
local reused, from = support.is_reused(target, sourcefile)
if reused then
local module = get(from, sourcefile)