diff options
| author | ruki <[email protected]> | 2023-03-11 00:48:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-03-11 00:48:45 +0800 |
| commit | 816c06fa10048cd8be85b7160838d21d59644e41 (patch) | |
| tree | 34bfdc97096f1b349bc00e822b0a611639614b20 /xmake/plugins/project/make/makefile.lua | |
| parent | 9e058f5691d48fd449cb7f8a9caa32155247bba8 (diff) | |
fix path
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
| -rw-r--r-- | xmake/plugins/project/make/makefile.lua | 10 |
1 files changed, 1 insertions, 9 deletions
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 |
