summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGly <[email protected]>2023-09-13 13:10:46 +0200
committerGly <[email protected]>2023-09-13 13:10:46 +0200
commit9e5040cb79e14597373b5bbeba4bbd6fecd847d2 (patch)
tree0c901bd82b7dba57c922a5d3116d75799af293fe
parent852a05aa097d105bd4d200fdda558a31dc4f740d (diff)
add modules in built source for xmake project
-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 68ba71c48..90b80e0b9 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"
+ if rulename == "c.build" or rulename == "c++.build" or rulename == "c++.build.modules"
or rulename == "asm.build" or rulename == "cuda.build"
or rulename == "objc.build" or rulename == "objc++.build" then
return true