summaryrefslogtreecommitdiff
path: root/xmake/core/base/interpreter.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-09-01 14:54:55 +0800
committerruki <[email protected]>2016-09-01 14:54:55 +0800
commit3e514c11027249b2c60966af5f2d5f5ae8eb361b (patch)
tree52962a4f46482fa4b83daab2f8e622a332b98038 /xmake/core/base/interpreter.lua
parent698ba0673743e5d260882432b8ba1aff8193c2ed (diff)
fix add_subpathes path issues
Diffstat (limited to 'xmake/core/base/interpreter.lua')
-rw-r--r--xmake/core/base/interpreter.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 7b2cc9e2c..75700e201 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -199,7 +199,7 @@ function interpreter:_api_builtin_add_subdirfiles(isdirs, ...)
assert(scopes)
-- get all subpathes
- local subpathes = self:_api_translate_pathes(...)
+ local subpathes = table.join(...)
-- match all subpathes
local subpathes_matched = {}
@@ -220,7 +220,7 @@ function interpreter:_api_builtin_add_subdirfiles(isdirs, ...)
-- get the absolute file path
if not path.is_absolute(file) then
- file = path.absolute(file, self._PRIVATE._ROOTDIR)
+ file = path.absolute(file)
end
-- update the current file