summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-15 11:09:02 +0800
committerGitHub <[email protected]>2023-09-15 11:09:02 +0800
commit1a677008c229118aee6c5d7011d9999ecdbdaca5 (patch)
tree77c87e810ab5d1144d97039e44a9cd3c0febf4f9
parente61af464265134482e9f1058b9e60d0e4b14b341 (diff)
Update compile_commands.lua
-rw-r--r--xmake/plugins/project/clang/compile_commands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua
index b8776955f..68ba71c48 100644
--- a/xmake/plugins/project/clang/compile_commands.lua
+++ b/xmake/plugins/project/clang/compile_commands.lua
@@ -38,7 +38,7 @@ end
function _sourcebatch_is_built(sourcebatch)
-- we can only use rulename to filter them because sourcekind may be bound to multiple rules
local rulename = sourcebatch.rulename
- if rulename == "c.build" or rulename == "c++.build" or rulename == "c++.build.modules.builder"
+ if rulename == "c.build" or rulename == "c++.build"
or rulename == "asm.build" or rulename == "cuda.build"
or rulename == "objc.build" or rulename == "objc++.build" then
return true