summaryrefslogtreecommitdiff
path: root/xmake/core/base/scopeinfo.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-02-17 22:41:01 +0800
committerruki <[email protected]>2022-02-17 22:41:01 +0800
commit54efc65b6ed2dfc86c28ba7cc3f40a6084785026 (patch)
treefebf2f4fcc2b80a5e8fb8c372f52742fad3dcd87 /xmake/core/base/scopeinfo.lua
parentfe5673d0291653137c3ecc53c2abba5c162a6779 (diff)
...
Diffstat (limited to 'xmake/core/base/scopeinfo.lua')
-rw-r--r--xmake/core/base/scopeinfo.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/core/base/scopeinfo.lua b/xmake/core/base/scopeinfo.lua
index 26be325eb..8a69a9299 100644
--- a/xmake/core/base/scopeinfo.lua
+++ b/xmake/core/base/scopeinfo.lua
@@ -114,7 +114,9 @@ function _instance:_api_set_values(name, ...)
end
-- expand values
- values = table.join(table.unpack(values))
+ if not extra_config or extra_config.expand ~= false then
+ values = table.join(table.unpack(values))
+ end
-- handle values
local handled_values = self:_api_handle(name, values)
@@ -153,7 +155,9 @@ function _instance:_api_add_values(name, ...)
end
-- expand values
- values = table.join(table.unpack(values))
+ if not extra_config or extra_config.expand ~= false then
+ values = table.join(table.unpack(values))
+ end
-- save values
scope[name] = self:_api_handle(name, table.join2(table.wrap(scope[name]), values))