diff options
Diffstat (limited to 'xmake/core/base/path.lua')
| -rw-r--r-- | xmake/core/base/path.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/base/path.lua b/xmake/core/base/path.lua index 02e010d89..0248fed67 100644 --- a/xmake/core/base/path.lua +++ b/xmake/core/base/path.lua @@ -412,6 +412,9 @@ end -- new a path instance function path.new(p, transform) + if path.instance_of(p) then + p = tostring(p) + end return _instance.new(p, transform) end |
