Skip to content

Commit

Permalink
support verilator for compdb
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 18, 2024
1 parent b938556 commit 7de6ef8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xmake/plugins/project/clang/compile_commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7de6ef8

Please sign in to comment.