summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-19 22:33:37 +0800
committerruki <[email protected]>2022-08-19 22:33:37 +0800
commita76bf73ea702886e85f8c2e61e62aa73b4c9e072 (patch)
tree52d4e91e86be7d9f28070f1ccb42fcfd370f7ba3 /xmake/core/package/package.lua
parent3c54402ff5d8c8cb2e085a09cd1fc4c10297817e (diff)
improve require configs for headeronly
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 11db68e0d..75946c3ec 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1160,12 +1160,15 @@ function _instance:configs()
configs = {}
local requireinfo = self:requireinfo()
local configs_required = requireinfo and requireinfo.configs or {}
+ local ignored_configs = hashset.from(requireinfo and requireinfo.ignored_configs or {})
for _, name in ipairs(table.wrap(configs_defined)) do
- local value = configs_required[name]
- if value == nil then
- value = self:extraconf("configs", name, "default")
+ if not ignored_configs:has(name) then
+ local value = configs_required[name]
+ if value == nil then
+ value = self:extraconf("configs", name, "default")
+ end
+ configs[name] = value
end
- configs[name] = value
end
else
configs = false