Commit 25d65110 authored by Martin Jeřábek's avatar Martin Jeřábek

testfw: ghdl flags: compile with debug info

This should not increase the compilation time much, although it does
increase the built objects size a bit. However, it allows to precisely
profile or debug the testbenches and/or ghdl.
parent c2ac657b
......@@ -134,9 +134,9 @@ def add_flags(ui, lib, build) -> None:
rt.scan_tests_from_file(str(build / "../reference/vunit_reference_wrapper.vhd"))
#lib.add_compile_option("ghdl.flags", ["-Wc,-g"])
lib.add_compile_option("ghdl.flags", ["-fprofile-arcs", "-ftest-coverage", "-fpsl"])
lib.add_compile_option("ghdl.flags", ["-fprofile-arcs", "-ftest-coverage", "-fpsl", "-g"])
elab_flags = ["-Wl,-lgcov"]
elab_flags = ["-Wl,-lgcov", "-g"]
elab_flags.append("-Wl,--coverage")
elab_flags.append("-Wl,-no-pie")
elab_flags.append("-fpsl")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment