summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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