summaryrefslogtreecommitdiff
path: root/xmake/core/base/interpreter.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-28 23:11:18 +0800
committerruki <[email protected]>2023-09-28 23:11:18 +0800
commitca1eba2d96ed24fd2070b45de35c42ce3b37b066 (patch)
treeaab939deefcce6901d6add8fd4a38239bdd6b76e /xmake/core/base/interpreter.lua
parent2aa8a4a793f3a7281487d6bc8334f975fa6bd26d (diff)
remove linkgroups from links
Diffstat (limited to 'xmake/core/base/interpreter.lua')
-rw-r--r--xmake/core/base/interpreter.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 6e30552b8..4733a3369 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -1231,6 +1231,7 @@ function interpreter:api_register_set_groups(scope_kind, ...)
-- expand values
values = table.join(table.unpack(values))
+ table.wrap_lock(values)
-- save values
scope[name] = values
@@ -1268,6 +1269,7 @@ function interpreter:api_register_add_groups(scope_kind, ...)
-- save values
scope[name] = scope[name] or {}
+ table.wrap_lock(values)
table.insert(scope[name], values)
-- save extra config