2020-08-18 20:47:53 +08:00
|
|
|
# The coverage linker flag is specific for clang.
|
2023-08-09 22:42:58 +08:00
|
|
|
if (CONFIG_COVERAGE_NATIVE_GCOV)
|
2020-08-18 20:47:53 +08:00
|
|
|
set_property(TARGET linker PROPERTY coverage --coverage)
|
2023-08-09 22:42:58 +08:00
|
|
|
elseif(CONFIG_COVERAGE_NATIVE_SOURCE)
|
|
|
|
set_property(TARGET linker PROPERTY coverage -fprofile-instr-generate -fcoverage-mapping)
|
2020-08-18 20:47:53 +08:00
|
|
|
endif()
|
2022-12-22 19:46:04 +08:00
|
|
|
|
|
|
|
# Extra warnings options for twister run
|
|
|
|
set_property(TARGET linker PROPERTY ld_extra_warning_options -Wl,--fatal-warnings)
|