diff options
| author | ruki <[email protected]> | 2023-10-13 00:39:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-13 00:39:21 +0800 |
| commit | 654050350b33b0f2dc6d472404b14ddd9795592c (patch) | |
| tree | 536e043d61afaac2be4eec63196b32656521ecde | |
| parent | 55ffb4205de048469907e9b233d04c10440699e6 (diff) | |
fix parse deps for gcc #4273
| -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 |
