mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-07 04:15:06 +00:00
As part of toolchain abstraction three template files to facilitate additional toolchain support development has been introduced. Those covers: - bintools - compiler flags - linker flags Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
17 lines
760 B
CMake
17 lines
760 B
CMake
# coverage is a property holding the linker flag required for coverage support on the toolchain.
|
|
# For example, on ld/gcc this would be: -lgcov
|
|
# Set the property for the corresponding flags of the given toolchain.
|
|
set_property(TARGET linker PROPERTY coverage)
|
|
|
|
# Linker flags for sanitizing.
|
|
check_set_linker_property(TARGET linker APPEND PROPERTY sanitize_address)
|
|
|
|
check_set_linker_property(TARGET linker APPEND PROPERTY sanitize_undefined)
|
|
|
|
# Linker flag for printing of memusage.
|
|
# Set this flag if the linker supports reporting of memusage as part of link,
|
|
# such as ls --print-memory-usage flag.
|
|
# If memory reporting is a post build command, please use
|
|
# cmake/bintools/bintools.cmake insted.
|
|
check_set_linker_property(TARGET linker PROPERTY memusage)
|