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
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:
parent
6893214fb3
commit
571558a4fe
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue