diff options
| author | ruki <[email protected]> | 2023-01-08 10:51:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-01-08 10:51:33 +0800 |
| commit | 6cfdc39bc02cc7fcccb82dcb5abd4d30c624db00 (patch) | |
| tree | 94e421b603fe05a8f2531bfa2a1dc39c2036ac46 /xmake/rules/c++/modules/modules_support/common.lua | |
| parent | 1b19d2ba990e8714d0298de50d009ee7ff6576e5 (diff) | |
update changelog
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/common.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/common.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/modules_support/common.lua b/xmake/rules/c++/modules/modules_support/common.lua index ace8f2c56..32c1b7be8 100644 --- a/xmake/rules/c++/modules/modules_support/common.lua +++ b/xmake/rules/c++/modules/modules_support/common.lua @@ -166,8 +166,8 @@ function cull_unused_modules(target, modules, package_modules_data) end -- append all package dependencies - local module_names = table.keys(package_modules_data) or {} local culled + local module_names = table.keys(package_modules_data) for _, name in ipairs(module_names) do culled = culled or {} if table.find(needed_modules, name) and package_modules_data[name] and not culled[name] then @@ -179,7 +179,6 @@ function cull_unused_modules(target, modules, package_modules_data) end end end - return culled end |
