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:
Rubin Gerritsen 2024-08-29 20:23:20 +02:00 committed by Anas Nashif
parent 35c0cc7bf1
commit 1a16ace775
1 changed files with 2 additions and 0 deletions

View File

@ -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>)