diff options
| -rw-r--r-- | xmake/core/base/path.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/core/base/path.lua b/xmake/core/base/path.lua index 712d8e604..ede2c36eb 100644 --- a/xmake/core/base/path.lua +++ b/xmake/core/base/path.lua @@ -70,10 +70,7 @@ end -- join path function path.join(p, ...) - for _, name in ipairs({...}) do - p = p .. "/" .. name - end - return path.translate(p) + return path.translate(p .. path.sep() .. table.concat({...}, path.sep())) end -- split path by the separator |
