summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-23 22:30:14 +0800
committerruki <[email protected]>2023-11-23 22:30:14 +0800
commit97a4857408891fe5203e70bca9df824b5d28ba31 (patch)
tree95d8041ceee54a5afa31bdea264c89d5f1814a06
parentefe8b4c68109d6c8d09c9a98236bf9bd11164ed3 (diff)
fix linkgroups inherit #4403
-rw-r--r--xmake/core/project/target.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index 455d0c7cf..4806078d4 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -542,7 +542,9 @@ function _instance:get(name, opt)
if not table.is_dictionary(values) then
local results = {}
for _, value in ipairs(table.wrap(values)) do
- local vs_conf = self:_visibility(extraconf[value])
+ -- we always call self:extraconf() to handle group value
+ local extra = self:extraconf(name, value)
+ local vs_conf = self:_visibility(extra)
if bit.band(vs_required, vs_conf) ~= 0 then
table.insert(results, value)
end
@@ -554,7 +556,7 @@ function _instance:get(name, opt)
return values
end
else
- -- only get thr private values
+ -- only get the private values
if bit.band(vs_required, vs_private) ~= 0 then
return values
end