summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-08 22:37:36 +0800
committerruki <[email protected]>2020-12-08 22:37:36 +0800
commit2aa929864c06f05437aefcce191953463de9bd10 (patch)
treecc7f8518db179a1303ddc886ecbb57b8249152ca
parent0484d0968ce8683c127e0ce0d4befc2efed00894 (diff)
ignore default setting for compile_commands
-rw-r--r--xmake/plugins/project/clang/compile_commands.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua
index 02872fa2d..b17eb2bfd 100644
--- a/xmake/plugins/project/clang/compile_commands.lua
+++ b/xmake/plugins/project/clang/compile_commands.lua
@@ -115,8 +115,7 @@ function _make_all(jsonfile)
-- make commands
_g.firstline = true
for _, target in pairs(project.targets()) do
- local isdefault = target:get("default")
- if not target:isphony() and (isdefault == nil or isdefault == true) then
+ if not target:isphony() then
_make_target(jsonfile, target)
end
end