summaryrefslogtreecommitdiff
path: root/xmake/rules
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-14 22:22:36 +0800
committerruki <[email protected]>2023-01-14 22:22:36 +0800
commit39c9b4f33db3d41a304fee2b380917713589efbb (patch)
treefce7d72190f0575cce6f50d0277036d445474545 /xmake/rules
parent57b4a29f08d9663684047e89a80615cbac132ff4 (diff)
improve VERILATOR_ROOT
Diffstat (limited to 'xmake/rules')
-rw-r--r--xmake/rules/verilator/verilator.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/verilator/verilator.lua b/xmake/rules/verilator/verilator.lua
index 0cfd39724..376a8dcb0 100644
--- a/xmake/rules/verilator/verilator.lua
+++ b/xmake/rules/verilator/verilator.lua
@@ -94,7 +94,7 @@ $finish ;
end
endmodule]])
os.mkdir(tmpdir)
- os.runv(verilator, argv)
+ os.runv(verilator, argv, {envs = toolchain:runenvs()})
-- parse some configurations from cmakefile
local verilator_root
@@ -185,7 +185,7 @@ function build_cppfiles(target, batchjobs, sourcebatch, opt)
table.join2(argv, sourcefiles)
-- generate c++ sourcefiles
- os.vrunv(verilator, argv)
+ os.vrunv(verilator, argv, {envs = toolchain:runenvs()})
end, {dependfile = cmakefile .. ".d",
files = sourcebatch.sourcefiles,