summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-01 23:01:05 +0800
committerruki <[email protected]>2022-10-01 23:01:05 +0800
commit5d982b979b6d81dc61d082ad44541af0b9d99bcf (patch)
tree78b7e9d476b4404da8c1e1272a66bf94851cc824
parent1d7b16ba00abc4ccc419f841179c1b04c3ebd9cc (diff)
fix compile_flags
-rw-r--r--xmake/plugins/project/clang/compile_flags.lua2
1 files changed, 1 insertions, 1 deletions
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