zephyr/cmake/compiler/gcc/target_sanitizers.cmake

10 lines
188 B
CMake
Raw Normal View History

# SPDX-License-Identifier: Apache-2.0
macro(toolchain_cc_asan)
zephyr_compile_options(-fsanitize=address)
zephyr_link_libraries(-lasan)
zephyr_ld_options(-fsanitize=address)
endmacro()