From 3e514c11027249b2c60966af5f2d5f5ae8eb361b Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 1 Sep 2016 14:54:55 +0800 Subject: fix add_subpathes path issues --- xmake/core/base/interpreter.lua | 4 ++-- 1 file 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 -- cgit v1.3.1