cmake: clang: Don't unconditionally use gcc's fortify
clang doesn't understand fortify at all, provide no op macro, in order to handle the request to fortify in a generic way. Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
This commit is contained in:
parent
2688bfad8e
commit
a3999243a1
1 changed files with 4 additions and 1 deletions
|
@ -63,9 +63,12 @@ string(REPLACE ";" " " CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
|
||||||
|
|
||||||
# Load toolchain_cc-family macros
|
# Load toolchain_cc-family macros
|
||||||
# Clang and GCC are almost feature+flag compatible, so reuse freestanding gcc
|
# Clang and GCC are almost feature+flag compatible, so reuse freestanding gcc
|
||||||
include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_security_fortify.cmake)
|
|
||||||
include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_security_canaries.cmake)
|
include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_security_canaries.cmake)
|
||||||
include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_optimizations.cmake)
|
include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_optimizations.cmake)
|
||||||
include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_cpp.cmake)
|
include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_cpp.cmake)
|
||||||
include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_asm.cmake)
|
include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_asm.cmake)
|
||||||
include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_baremetal.cmake)
|
include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_baremetal.cmake)
|
||||||
|
|
||||||
|
macro(toolchain_cc_security_fortify)
|
||||||
|
# No op, clang doesn't understand fortify at all
|
||||||
|
endmacro()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue