From 91a84f7536e1563b448e85e2c4dacc70bcdd7a82 Mon Sep 17 00:00:00 2001 From: Gly Date: Thu, 11 Aug 2022 13:45:36 +0200 Subject: Correction about length of -isystem-after flag --- xmake/plugins/project/clang/compile_commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1