From 816c06fa10048cd8be85b7160838d21d59644e41 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 11 Mar 2023 00:48:45 +0800 Subject: fix path --- xmake/plugins/project/make/makefile.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'xmake/plugins/project/make/makefile.lua') diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua index 36645654c..ef1122857 100644 --- a/xmake/plugins/project/make/makefile.lua +++ b/xmake/plugins/project/make/makefile.lua @@ -26,14 +26,6 @@ import("core.language.language") import("core.platform.platform") import("lib.detect.find_tool") --- escape path -function _escape_path(filepath) - if is_host("windows") then - filepath = filepath:gsub('\\', '/') - end - return filepath -end - -- tranlate path function _translate_path(filepath, outputdir) filepath = path.translate(filepath) @@ -53,7 +45,7 @@ end -- get relative unix path function _get_relative_unix_path(filepath, outputdir) filepath = _translate_path(filepath, outputdir) - filepath = _escape_path(path.translate(filepath)) + filepath = path.translate(filepath) return os.args(filepath) end -- cgit v1.3.1