From 7de6ef87f03eea062004ccfe9ee50a36dfec8a3c Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 19 Sep 2024 00:52:02 +0800 Subject: [PATCH] support verilator for compdb --- xmake/plugins/project/clang/compile_commands.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua index fa32ea7ca3..369608431d 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