diff options
| author | Gly <[email protected]> | 2022-08-11 13:45:36 +0200 |
|---|---|---|
| committer | Gly <[email protected]> | 2022-08-11 13:45:36 +0200 |
| commit | 91a84f7536e1563b448e85e2c4dacc70bcdd7a82 (patch) | |
| tree | 110fb03e385fbf338b64de27555a315861654d3c | |
| parent | 720fce958cb8bfe0546ef5246c4928000766ca11 (diff) | |
Correction about length of -isystem-after flag
| -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 |
