summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-14 00:49:45 +0800
committerruki <[email protected]>2023-01-14 00:49:45 +0800
commit2c7c559cba72699b263a2c33c7ed112aff98575a (patch)
tree9b903f2c2698e105b0be44cb7a42f6691d3b3d0b
parentbb0ee139effbc66e3b786ad3f19d8145fb4f8465 (diff)
improve argv
-rw-r--r--xmake/rules/verilator/xmake.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/rules/verilator/xmake.lua b/xmake/rules/verilator/xmake.lua
index 2a1067264..4b7a80f7a 100644
--- a/xmake/rules/verilator/xmake.lua
+++ b/xmake/rules/verilator/xmake.lua
@@ -32,7 +32,7 @@ rule("verilator.binary")
local cmakefile = path.join(autogendir, targetname .. ".cmake")
local dependfile = cmakefile .. ".d"
- local argv = {"--cc", "--compiler", "gcc", "--make", "cmake", "--prefix", targetname, "--Mdir", path(autogendir)}
+ local argv = {"--cc", "--make", "cmake", "--prefix", targetname, "--Mdir", path(autogendir)}
local sourcefiles = sourcebatch.sourcefiles
for _, sourcefile in ipairs(sourcefiles) do
batchcmds:show_progress(opt.progress, "${color.build.target}compiling.verilator %s", path.filename(sourcefile))
@@ -55,7 +55,10 @@ rule("verilator.binary")
local cmakefile = path.join(autogendir, targetname .. ".cmake")
local dependfile = path.join(autogendir, targetname .. ".build.d")
+ -- TODO we need get correct files list
local sourcefiles = os.files(path.join(autogendir, "*.cpp"))
+
+ -- do build
for _, sourcefile in ipairs(sourcefiles) do
local objectfile = target:objectfile(sourcefile)
batchcmds:compile(sourcefile, objectfile)