summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-19 00:52:02 +0800
committerruki <[email protected]>2025-01-22 21:42:44 +0800
commit07b15c3f88552dbf268ed3dbc5de6100aa40544f (patch)
tree33f9f8c46ac9435f7c96715fe7c9d4a81fc77d3c
parent2443dcf5e335a859102080331b7c5d0e9254d6f5 (diff)
support verilator for compdb
-rw-r--r--xmake/plugins/project/clang/compile_commands.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua
index ad21cff51..b0f888fdd 100644
--- a/xmake/plugins/project/clang/compile_commands.lua
+++ b/xmake/plugins/project/clang/compile_commands.lua
@@ -41,7 +41,8 @@ function _sourcebatch_is_built(sourcebatch)
local rulename = sourcebatch.rulename
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
+ or rulename == "objc.build" or rulename == "objc++.build"
+ or rulename:startswith("verilator.") then
return true
end
end