Lines Matching +full:api +full:- +full:coverage
1 # SPDX-License-Identifier: Apache-2.0
12 # For ex. target_compile_options(native_simulator INTERFACE "-m64")
16 # For ex. target_link_options(native_simulator INTERFACE "-lstdc++")
29 …roperty(TARGET native_simulator APPEND PROPERTY LOCALIZE_EXTRA_OPTIONS "--localize-symbol=spinel*")
47 # some gcc versions fail to build without -fPIC
48 zephyr_compile_options(-m64 -fPIC)
49 zephyr_link_libraries(-m64)
51 target_link_options(native_simulator INTERFACE "-m64")
52 target_compile_options(native_simulator INTERFACE "-m64")
54 zephyr_compile_options(-m32)
55 zephyr_link_libraries(-m32)
57 target_link_options(native_simulator INTERFACE "-m32")
58 target_compile_options(native_simulator INTERFACE "-m32")
64 check_set_compiler_property(APPEND PROPERTY fpsse2 "SHELL:-msse2 -mfpmath=sse")
76 -include ${ZEPHYR_BASE}/arch/posix/include/posix_cheats.h
80 -fvisibility=hidden
86 -Wl,--unresolved-symbols=ignore-all
93 # /usr/lib/gcc/x86_64-linux-gnu/12/include or /usr/lib/llvm-14/lib/clang/14.0.0/include
95 COMMAND ${CMAKE_C_COMPILER} --print-file-name=include/stddef.h
106 -nostdinc
107 -isystem ${COMPILER_OWN_INCLUDE_PATH}
108 "SHELL:-include ${ZEPHYR_BASE}/arch/posix/include/undef_system_defines.h"
125 target_link_options(native_simulator INTERFACE "-lstdc++")
131 target_compile_options(native_simulator INTERFACE $<TARGET_PROPERTY:compiler,coverage>)
132 target_link_options(native_simulator INTERFACE $<TARGET_PROPERTY:linker,coverage>)
139 target_link_options(native_simulator INTERFACE "-pg")
144 -ldl
145 -pthread
149 # About the -include directive: The reason to do it this way, is because in this
152 # app file which uses the pthreads like API provided by Zephyr
153 # ( include/posix/pthread.h / kernel/pthread.c ) [And any future API added to
154 # Zephyr which will clash with the native POSIX API] . It would also need to
175 zephyr_compile_options(-fsanitize-recover=all)
176 target_compile_options(native_simulator INTERFACE "-fsanitize-recover=all")
181 target_compile_options(native_simulator INTERFACE "-DNSI_NO_MAIN=1")
186 zephyr_compile_options(-fPIC)
192 set(LLVM_SANITIZERS_ARG "-fsanitize=${LLVM_SANITIZERS_ARG}")