diff options
| author | ruki <[email protected]> | 2022-05-26 22:09:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-26 22:09:41 +0800 |
| commit | 58187b1d1e77925e31f96c4d8d1c96be88473244 (patch) | |
| tree | c1e9be35e317264e674b4768f3994db336a38fa4 | |
| parent | 4f8f5e605391b82e81a7c5b7ba67b110d9f85ab5 (diff) | |
fix path
| -rw-r--r-- | xmake/core/base/path.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/core/base/path.lua b/xmake/core/base/path.lua index df99ef30e..3dfb90b2a 100644 --- a/xmake/core/base/path.lua +++ b/xmake/core/base/path.lua @@ -110,11 +110,7 @@ end function _instance:join(...) local items = {self:str()} for _, item in ipairs(table.pack(...)) do - if path.instance_of(item) then - table.insert(items, item:str()) - else - table.insert(items, item) - end + table.insert(items, tostring(item)) end return path.new(path.join(table.unpack(items)), self._TRANSFORM) end @@ -129,7 +125,7 @@ end -- concat two paths function _instance:__concat(other) - return path.new(path.join(self:str(), other:str()), self._TRANSFORM) + return path.new(path.join(self:str(), tostring(other)), self._TRANSFORM) end -- tostring(path) |
