summaryrefslogtreecommitdiff
path: root/xmake/rules/verilator/verilator.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-06-28 22:38:37 +0800
committerruki <[email protected]>2026-06-28 23:05:09 +0800
commitf1194083f0f0b48e320afa6dd5e7353930044c9d (patch)
tree3e4014ebdb37c46ff79c1d20a981a6b520c28464 /xmake/rules/verilator/verilator.lua
parentfbf7ed31b095f201a577b86aafd523cb4efa3e8c (diff)
improve verilator rulesverilator
Diffstat (limited to 'xmake/rules/verilator/verilator.lua')
-rw-r--r--xmake/rules/verilator/verilator.lua32
1 files changed, 0 insertions, 32 deletions
diff --git a/xmake/rules/verilator/verilator.lua b/xmake/rules/verilator/verilator.lua
index 72de7b91b..dbf6192bc 100644
--- a/xmake/rules/verilator/verilator.lua
+++ b/xmake/rules/verilator/verilator.lua
@@ -309,38 +309,6 @@ function build_cppfiles(target, jobgraph, sourcebatch, opt)
local targetname = target:name()
local makefile = path.join(autogendir, targetname .. "." .. makefile_type)
- -- build verilog files
- depend.on_changed(function()
- local argv = { "--cc", "--make", makefile_type, "--prefix", targetname, "--Mdir", autogendir }
- local flags = _get_verilator_flags(target)
- if flags then
- table.join2(argv, flags)
- end
- local language_flags = _get_lanuage_flags(target)
- if language_flags then
- table.join2(argv, language_flags)
- end
- local sourcefiles = sourcebatch.sourcefiles
- for _, sourcefile in ipairs(sourcefiles) do
- local sourcefile = sourcefile
- progress.show(opt.progress or 0, "${color.build.object}compiling.verilog %s", sourcefile)
- -- we need to use slashes to fix it on windows
- -- @see https://github.com/verilator/verilator/issues/3873
- if is_host("windows") then
- sourcefile = sourcefile:gsub("\\", "/")
- end
- table.insert(argv, sourcefile)
- end
-
- -- generate c++ sourcefiles
- os.vrunv(verilator, argv, { envs = toolchain:runenvs() })
- end, {
- dependfile = makefile .. ".d",
- files = sourcebatch.sourcefiles,
- changed = target:is_rebuilt(),
- lastmtime = os.mtime(makefile)
- })
-
-- get compiled source files
local sourcefiles
if support_json then