summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-05-22 23:24:45 +0800
committerruki <[email protected]>2021-05-22 23:24:45 +0800
commitfdfa79d46fbaf0f674e343f4939859cbe9bbe40f (patch)
treebf393dbf256697378641208e5d4a067ba3237beb
parent29cf8d2006a6bc62f4433e59a4755d02d1524da6 (diff)
improve paths
-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