diff options
| -rw-r--r-- | xmake/plugins/project/clang/compile_commands.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua index 136de4bf1..ffe06a807 100644 --- a/xmake/plugins/project/clang/compile_commands.lua +++ b/xmake/plugins/project/clang/compile_commands.lua @@ -131,6 +131,13 @@ function _translate_arguments(arguments) if v and v:find(' ', 1, true) then arg = f .. "\"" .. v .. "\"" end + elseif arg:startswith("-ccbin=") then + -- @see https://github.com/xmake-io/xmake/issues/4716 + local f = arg:sub(1, 7) + local v = arg:sub(8) + if v then + arg = f .. v:gsub("\\\\", "\\") + end end end if arg == "-I" then |
