Skip to content

Commit 07b15c3

Browse files
committed
support verilator for compdb
1 parent 2443dcf commit 07b15c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xmake/plugins/project/clang/compile_commands.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ function _sourcebatch_is_built(sourcebatch)
4141
local rulename = sourcebatch.rulename
4242
if rulename == "c.build" or rulename == "c++.build"
4343
or rulename == "asm.build" or rulename == "cuda.build"
44-
or rulename == "objc.build" or rulename == "objc++.build" then
44+
or rulename == "objc.build" or rulename == "objc++.build"
45+
or rulename:startswith("verilator.") then
4546
return true
4647
end
4748
end

0 commit comments

Comments
 (0)