diff options
| author | Arthur LAURENT <[email protected]> | 2024-07-22 18:25:16 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-07-22 18:25:16 +0200 |
| commit | af19722ebd25a7c96b3e3b042e4e48cb690b5e63 (patch) | |
| tree | 173db741391f4934df06b6c0449e04e63105261b /xmake/modules/private/action/require/impl/package.lua | |
| parent | bbe7745ad8ccde3f39f1c1e468fd2d96ca7cb3f5 (diff) | |
improve moduleonly support
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
| -rw-r--r-- | xmake/modules/private/action/require/impl/package.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua index 8d64b7891..1c7eaf9e5 100644 --- a/xmake/modules/private/action/require/impl/package.lua +++ b/xmake/modules/private/action/require/impl/package.lua @@ -553,9 +553,9 @@ function _init_requireinfo(requireinfo, package, opt) requireinfo.configs.asan = project.policy("build.sanitizer.address") end end - -- but we will ignore some configs for buildhash in the headeronly and host/binary package + -- but we will ignore some configs for buildhash in the headeronly, moduleonly and host/binary package -- @note on_test still need these configs, @see https://github.com/xmake-io/xmake/issues/4124 - if package:is_headeronly() or (package:is_binary() and not package:is_cross()) then + if package:is_headeronly() or package:is_moduleonly() or (package:is_binary() and not package:is_cross()) then requireinfo.ignored_configs_for_buildhash = {"runtimes", "toolchains", "lto", "asan", "pic"} end end |
