Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi authored Sep 30, 2024
1 parent 8482d2e commit 9260be0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions xmake/rules/iverilog/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

-- @see https://github.com/xmake-io/xmake/issues/3257
rule("iverilog.binary")
-- support SystemVerilog
set_extensions(".v", ".sv", ".vhd")
on_load(function (target)
target:set("kind", "binary")
Expand Down Expand Up @@ -82,7 +81,7 @@ rule("iverilog.binary")
end

-- get defines
for _, define in ipairs(target:get_from("defines", "*") or {}) do
for _, define in ipairs((target:get_from("defines", "*"))) do
table.insert(argv, "-D" .. define)
end

Expand Down Expand Up @@ -113,7 +112,5 @@ rule("iverilog.binary")
on_run(function (target)
local toolchain = assert(target:toolchain("iverilog"), 'we need set_toolchains("iverilog") in target("%s")', target:name())
local vvp = assert(toolchain:config("vvp"), "vvp not found!")

-- some oscilloscopes do not support lxt2
os.execv(vvp, {"-n", target:targetfile()})
end)

0 comments on commit 9260be0

Please sign in to comment.