From 3fd6e799c8ec2c7203a862f4252bdbe2bcf4cb61 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 17 Aug 2025 23:10:59 +0800 Subject: fix path #6720 --- xmake/core/base/path.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xmake/core/base/path.lua') 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 -- cgit v1.3.1