summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-25 12:47:50 +0800
committerGitHub <[email protected]>2024-07-25 12:47:50 +0800
commitdeef593df0fc604b0da9fe735edf30e31c82af8c (patch)
tree4be14639a997cdae2ce2da0fad7b36159ec119db /xmake/modules/private/action/require/impl/package.lua
parent2eac22e42e4ebeebbcdd5e241fea4fcaf7a92e59 (diff)
parent626b80e46c371a2723f204e2412339e73d6cbece (diff)
Merge pull request #5376 from Arthapz/fix-module-objectfiles-handling
Improve module objectfiles handling and moduleonly package
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
-rw-r--r--xmake/modules/private/action/require/impl/package.lua4
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