Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rules/iverilog): Improve the iverilog build rules #5677

Merged
merged 4 commits into from
Sep 30, 2024

Conversation

24bit-xjkp
Copy link
Contributor

  1. Add System Verilog support
  2. Support add_defines by add_options
  3. Use vcd format instead of lxt2 to support WaveTrace plugin

1. Add System Verilog support
2. Support add_defines by add_options
3. Use vcd format instead of lxt2 to support WaveTrace plugin
for _, option_name in ipairs(target:get("options") or {}) do
local option = project.option(option_name)
add_defines(option:enabled() and option:get("defines"))
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不要这么搞,参考

table.join2(flags, compiler.map_flags("cxx", "define", _get_values_from_target(target, "defines")))

@@ -20,7 +20,8 @@

-- @see https://github.com/xmake-io/xmake/issues/3257
rule("iverilog.binary")
set_extensions(".v", ".vhd")
-- support SystemVerilog
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注释去掉

@waruqi waruqi merged commit dab564a into xmake-io:dev Sep 30, 2024
19 checks passed
@waruqi waruqi added this to the v2.9.6 milestone Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants