diff options
| author | Arthur LAURENT <[email protected]> | 2024-07-21 18:49:22 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-07-21 18:49:22 +0200 |
| commit | 0314af9533bab0d687bc31a2c2cc7c97416fe814 (patch) | |
| tree | 3e1b8ee51bf75ca18797778059f77de51a75f4a9 /xmake/rules/c++/modules | |
| parent | e5ba7a1d14ef6f8afa2491b4dc0131169aaa4a76 (diff) | |
add a fileconfig entry to disable module culling
Diffstat (limited to 'xmake/rules/c++/modules')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/dependency_scanner.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/dependency_scanner.lua b/xmake/rules/c++/modules/modules_support/dependency_scanner.lua index cef55fbd5..6c513242b 100644 --- a/xmake/rules/c++/modules/modules_support/dependency_scanner.lua +++ b/xmake/rules/c++/modules/modules_support/dependency_scanner.lua @@ -427,7 +427,8 @@ function sort_modules_by_dependencies(target, objectfiles, modules) local _, provide, cppfile = compiler_support.get_provided_module(modules[objectfile]) local fileconfig = target:fileconfig(cppfile) local public = fileconfig and fileconfig.public - if not provide or public then + 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) end else |
