all tests build with cfi
Some checks failed
Hello World (Multiplatform) / build (macos-12) (push) Has been cancelled
Hello World (Multiplatform) / build (macos-14) (push) Has been cancelled
Hello World (Multiplatform) / build (ubuntu-22.04) (push) Has been cancelled
Hello World (Multiplatform) / build (windows-2022) (push) Has been cancelled
Run tests with twister / twister-build-prep (push) Has been cancelled
Run tests with twister / twister-build (push) Has been cancelled
Run tests with twister / Publish Unit Tests Results (push) Has been cancelled
Run tests with twister / Check Twister Status (push) Has been cancelled

This commit is contained in:
Patrick 2024-08-21 17:20:54 +02:00
parent 6893214fb3
commit 571558a4fe
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
3 changed files with 3 additions and 3 deletions

View file

@ -104,7 +104,7 @@ elseif (CONFIG_NATIVE_LIBRARY)
# no_builtin to avoid the compiler using builtin replacements for std library functions # no_builtin to avoid the compiler using builtin replacements for std library functions
zephyr_compile_options( zephyr_compile_options(
-nostdinc -nostdinc
-isystem ${COMPILER_OWN_INCLUDE_PATH} #-isystem ${COMPILER_OWN_INCLUDE_PATH}
"SHELL:-include ${ZEPHYR_BASE}/arch/posix/include/undef_system_defines.h" "SHELL:-include ${ZEPHYR_BASE}/arch/posix/include/undef_system_defines.h"
$<TARGET_PROPERTY:compiler,freestanding> $<TARGET_PROPERTY:compiler,freestanding>
$<TARGET_PROPERTY:compiler,no_builtin> $<TARGET_PROPERTY:compiler,no_builtin>

View file

@ -4,7 +4,7 @@ zephyr_library()
zephyr_library_sources(libc-hooks.c) zephyr_library_sources(libc-hooks.c)
# Do not allow LTO when compiling libc-hooks.c file # Do not allow LTO when compiling libc-hooks.c file
set_source_files_properties(libc-hooks.c PROPERTIES COMPILE_OPTIONS $<TARGET_PROPERTY:compiler,prohibit_lto>) set_source_files_properties(libc-hooks.c PROPERTIES COMPILE_OPTIONS $<TARGET_PROPERTY:compiler,prohibit_lto>;$<TARGET_PROPERTY:compiler,prohibit_cfi>)
# Zephyr normally uses -ffreestanding, which with current GNU toolchains # Zephyr normally uses -ffreestanding, which with current GNU toolchains
# means that the flag macros used by newlib 3.x <inttypes.h> to signal # means that the flag macros used by newlib 3.x <inttypes.h> to signal

View file

@ -4,7 +4,7 @@ zephyr_library()
zephyr_library_sources(libc-hooks.c) zephyr_library_sources(libc-hooks.c)
# Do not allow LTO when compiling libc-hooks.c file # Do not allow LTO when compiling libc-hooks.c file
set_source_files_properties(libc-hooks.c PROPERTIES COMPILE_OPTIONS $<TARGET_PROPERTY:compiler,prohibit_lto>) set_source_files_properties(libc-hooks.c PROPERTIES COMPILE_OPTIONS "$<TARGET_PROPERTY:compiler,prohibit_lto>;$<TARGET_PROPERTY:compiler,prohibit_cfi>")
# define __LINUX_ERRNO_EXTENSIONS__ so we get errno defines like -ESHUTDOWN # define __LINUX_ERRNO_EXTENSIONS__ so we get errno defines like -ESHUTDOWN
# used by the network stack # used by the network stack