summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-13 00:39:21 +0800
committerruki <[email protected]>2023-10-13 00:39:21 +0800
commit654050350b33b0f2dc6d472404b14ddd9795592c (patch)
tree536e043d61afaac2be4eec63196b32656521ecde
parent55ffb4205de048469907e9b233d04c10440699e6 (diff)
fix parse deps for gcc #4273
-rw-r--r--xmake/modules/private/tools/gcc/parse_deps.lua5
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