summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-04-08 00:45:12 +0800
committerruki <[email protected]>2025-04-08 15:31:58 +0800
commitbd6f305cd44634dd9829407d01749ae150a7b2d8 (patch)
treef420cea79b1d71ae6c52dc479d3816e74b7b8c85
parentabd58c9c0e5043d73b127de9cd387e416bd5090f (diff)
improve verilator rules
-rw-r--r--xmake/rules/verilator/xmake.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/verilator/xmake.lua b/xmake/rules/verilator/xmake.lua
index ca60a3289..2042d8233 100644
--- a/xmake/rules/verilator/xmake.lua
+++ b/xmake/rules/verilator/xmake.lua
@@ -88,9 +88,9 @@ rule("verilator.shared")
-- Just to avoid before_buildcmd_files being executed at build time
end)
- on_build_files(function (target, batchjobs, sourcebatch, opt)
- import("verilator").build_cppfiles(target, batchjobs, sourcebatch, opt)
- end, {batch = true, distcc = true})
+ on_build_files(function (target, jobgraph, sourcebatch, opt)
+ import("verilator").build_cppfiles(target, jobgraph, sourcebatch, opt)
+ end, {jobgraph = true, batch = true, distcc = true})
before_buildcmd_files(function(target, batchcmds, sourcebatch, opt)
import("verilator").buildcmd_vfiles(target, batchcmds, sourcebatch, opt)