From 5d982b979b6d81dc61d082ad44541af0b9d99bcf Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 1 Oct 2022 23:01:05 +0800 Subject: fix compile_flags --- xmake/plugins/project/clang/compile_flags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/plugins/project/clang/compile_flags.lua b/xmake/plugins/project/clang/compile_flags.lua index 75f6130a8..3c76b1bdb 100644 --- a/xmake/plugins/project/clang/compile_flags.lua +++ b/xmake/plugins/project/clang/compile_flags.lua @@ -34,7 +34,7 @@ function _make_object(target, flags, sourcefile, objectfile) for i, flag in ipairs(arguments) do -- only export the -I*/-D* flags if flag == "-I" or flag == "/I" or flag == "-isystem" then - table.insert(flags, flag .. " " .. arguments[i + 1]) + table.insert(flags, flag .. arguments[i + 1]) elseif flag:find('^-[ID]') or flag:find("-isystem", 1, true) then table.insert(flags, flag) end -- cgit v1.3.1