Sign in
pigweed
/
third_party
/
github
/
zephyrproject-rtos
/
zephyr
/
bd6e04411e6cfb34ff871b3436f7b05bdcd639fb
/
.
/
cmake
/
compiler
/
gcc
/
target_coverage.cmake
blob: 5a7dc74ef0315827c047802e79317d72a5268787 [
file
] [
log
] [
blame
]
# SPDX-License-Identifier: Apache-2.0
macro
(
toolchain_cc_coverage
)
zephyr_compile_options
(
-
fprofile
-
arcs
-
ftest
-
coverage
-
fno
-
inline
)
if
(
NOT CONFIG_COVERAGE_GCOV
)
zephyr_link_libraries
(
-
lgcov
)
endif
()
endmacro
()