toolchain: improved toolchain abstraction for compilers and linker

Accodind to c55c64e to update code

Signed-off-by: Jingru Wang <jingru@synopsys.com>
This commit is contained in:
Jingru Wang 2020-12-03 14:59:46 +08:00 committed by Anas Nashif
parent 916dd0f6c4
commit 5f2aa0409c

View file

@ -3,7 +3,8 @@
zephyr_library()
if(CONFIG_COVERAGE)
toolchain_cc_coverage()
zephyr_compile_options($<TARGET_PROPERTY:compiler,coverage>)
zephyr_link_libraries($<TARGET_PROPERTY:linker,coverage>)
endif()
zephyr_library_sources(