diff options
| -rw-r--r-- | xmake/plugins/project/clang/compile_commands.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua index 70692eef4..637affaa1 100644 --- a/xmake/plugins/project/clang/compile_commands.lua +++ b/xmake/plugins/project/clang/compile_commands.lua @@ -45,7 +45,7 @@ function _translate_arguments(arguments) arg = arg .. ".exe" end if arg:startswith("-isystem-after", 1, true) then - arg = "-I" .. arg:sub(13, -1) + arg = "-I" .. arg:sub(15, -1) elseif arg:startswith("-isystem", 1, true) then arg = "-I" .. arg:sub(9, -1) elseif arg:find("[%-/]external:I") then |
