diff options
| -rw-r--r-- | xmake/modules/private/tools/gcc/parse_deps.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/private/tools/gcc/parse_deps.lua b/xmake/modules/private/tools/gcc/parse_deps.lua index 2227b0f8f..b4b5cba7f 100644 --- a/xmake/modules/private/tools/gcc/parse_deps.lua +++ b/xmake/modules/private/tools/gcc/parse_deps.lua @@ -30,7 +30,10 @@ local space_placeholder = "\001" function _normailize_dep(dep, projectdir) -- escape characters, e.g. \#Qt.Widget_pch.h -> #Qt.Widget_pch.h -- @see https://github.com/xmake-io/xmake/issues/4134 - dep = dep:gsub("\\(.)", "%1") + -- https://github.com/xmake-io/xmake/issues/4273 + if not is_host("windows") then + dep = dep:gsub("\\(.)", "%1") + end if path.is_absolute(dep) then dep = path.translate(dep) else |
