unittest: Enable debug info by default
By enabling debugging information it becomes way much simpler to find the root cause of a failing unit test as we can simply run it with a debugger. Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
This commit is contained in:
parent
35c0cc7bf1
commit
1a16ace775
1 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,8 @@ target_link_libraries(testbinary PRIVATE
|
||||||
${EXTRA_LDFLAGS_AS_LIST}
|
${EXTRA_LDFLAGS_AS_LIST}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_compile_options(test_interface INTERFACE $<TARGET_PROPERTY:compiler,debug>)
|
||||||
|
|
||||||
if(CONFIG_COVERAGE)
|
if(CONFIG_COVERAGE)
|
||||||
target_compile_options(test_interface INTERFACE $<TARGET_PROPERTY:compiler,coverage>)
|
target_compile_options(test_interface INTERFACE $<TARGET_PROPERTY:compiler,coverage>)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue