summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/base/interpreter.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 57e085ccd..2f26e20ce 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -1286,6 +1286,7 @@ function interpreter:api_register_set_paths(scope_kind, ...)
end
-- translate paths
+ values = table.join(unpack(values))
local paths = self:_api_translate_paths(values, "set_" .. name)
-- save values
@@ -1318,7 +1319,7 @@ function interpreter:api_register_del_paths(scope_kind, ...)
local implementation = function (self, scope, name, ...)
-- translate paths
- local values = {...}
+ local values = table.join(...)
local paths = self:_api_translate_paths(values, "del_" .. name)
-- mark these paths as deleted
@@ -1357,6 +1358,7 @@ function interpreter:api_register_add_paths(scope_kind, ...)
end
-- translate paths
+ values = table.join(unpack(values))
local paths = self:_api_translate_paths(values, "add_" .. name)
-- save values