posix: cmake: Abstract freestanding options
clang has problems compiling the native_posix with -fno-freestanding. Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
This commit is contained in:
parent
ab2f00e9f1
commit
f616aa3736
5 changed files with 18 additions and 1 deletions
|
@ -79,3 +79,8 @@ include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_baremetal.cmake)
|
|||
macro(toolchain_cc_security_fortify)
|
||||
# No op, clang doesn't understand fortify at all
|
||||
endmacro()
|
||||
|
||||
macro(toolchain_cc_no_freestanding_options)
|
||||
# No op, this is used by the native_posix, clang has problems
|
||||
# compiling the native_posix with -fno-freestanding.
|
||||
endmacro()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue