diff options
| author | ruki <[email protected]> | 2023-08-30 00:18:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-08-30 00:18:43 +0800 |
| commit | ea1f3a95adba361e27d387f0b5227cd4ce458440 (patch) | |
| tree | bac9a03549b4a561b67bc978e4e7a991973d667d | |
| parent | 3e18a9f75b1593143c151cc937acd820addc41e1 (diff) | |
fix include dep path #4134
| -rw-r--r-- | xmake/modules/private/tools/gcc/parse_deps.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/private/tools/gcc/parse_deps.lua b/xmake/modules/private/tools/gcc/parse_deps.lua index 24ff67f09..d46b5538b 100644 --- a/xmake/modules/private/tools/gcc/parse_deps.lua +++ b/xmake/modules/private/tools/gcc/parse_deps.lua @@ -27,6 +27,9 @@ local space_placeholder = "\001" -- normailize path of a dependecy 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") if path.is_absolute(dep) then dep = path.translate(dep) else |
