diff options
| author | Arthur LAURENT <[email protected]> | 2025-08-14 20:13:53 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-08-14 20:13:53 +0200 |
| commit | 62832812855344adeb7c5d92240b2ea77b1594c9 (patch) | |
| tree | 0ffeae1963fdd36b3018412a3b9d6ab953377b72 /xmake/rules/c++/modules/support.lua | |
| parent | 84fcc1fd63aec5b6126f35806305326e4ecb936f (diff) | |
fix(c++ modules) fix public culled module incorrectly emiting a warning
Diffstat (limited to 'xmake/rules/c++/modules/support.lua')
| -rw-r--r-- | xmake/rules/c++/modules/support.lua | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/xmake/rules/c++/modules/support.lua b/xmake/rules/c++/modules/support.lua index 9b9662990..29fc92fb0 100644 --- a/xmake/rules/c++/modules/support.lua +++ b/xmake/rules/c++/modules/support.lua @@ -205,14 +205,19 @@ function is_public(target, sourcefile) return fileconfig and fileconfig.public or false end --- query if a module is external -function is_external(target, sourcefile) +-- query if a module from a target dep +function is_from_dep(target, sourcefile) local fileconfig = target:fileconfig(sourcefile) - local external = fileconfig and fileconfig.external - return external or false + return fileconfig and fileconfig.from_dep or false end --- query if a module is external +-- query if a module from a package +function is_from_package(target, sourcefile) + local fileconfig = target:fileconfig(sourcefile) + return fileconfig and fileconfig.from_package or false +end + +-- query if we should only build bmi function is_bmionly(target, sourcefile) local fileconfig = target:fileconfig(sourcefile) return fileconfig and fileconfig.bmionly or false |
