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
|
@ -121,6 +121,8 @@ target_link_libraries(testbinary PRIVATE
|
|||
${EXTRA_LDFLAGS_AS_LIST}
|
||||
)
|
||||
|
||||
target_compile_options(test_interface INTERFACE $<TARGET_PROPERTY:compiler,debug>)
|
||||
|
||||
if(CONFIG_COVERAGE)
|
||||
target_compile_options(test_interface INTERFACE $<TARGET_PROPERTY:compiler,coverage>)
|
||||
|
||||
|
|
Loading…
Reference in New Issue