compile native_sim with debug msg
Some checks are pending
Hello World (Multiplatform) / build (macos-12) (push) Waiting to run
Hello World (Multiplatform) / build (macos-14) (push) Waiting to run
Hello World (Multiplatform) / build (ubuntu-22.04) (push) Waiting to run
Hello World (Multiplatform) / build (windows-2022) (push) Waiting to run
Run tests with twister / twister-build-prep (push) Waiting to run
Run tests with twister / twister-build (push) Blocked by required conditions
Run tests with twister / Publish Unit Tests Results (push) Blocked by required conditions
Run tests with twister / Check Twister Status (push) Blocked by required conditions

This commit is contained in:
Patrick 2024-07-31 16:43:25 +02:00
parent 1d2000beab
commit ef199a07cd
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
4 changed files with 6 additions and 2 deletions

View file

@ -823,6 +823,7 @@ target_include_directories(${OFFSETS_LIB} PRIVATE
# Make sure that LTO will never be enabled when compiling offsets.c
set_source_files_properties(${OFFSETS_C_PATH} PROPERTIES COMPILE_OPTIONS "$<TARGET_PROPERTY:compiler,prohibit_lto>;$<TARGET_PROPERTY:compiler,prohibit_cfi>")
set_source_files_properties(${ZEPHYR_BASE}/misc/empty_file.c PROPERTIES COMPILE_OPTIONS "$<TARGET_PROPERTY:compiler,prohibit_lto>;$<TARGET_PROPERTY:compiler,prohibit_cfi>")
target_link_libraries(${OFFSETS_LIB} zephyr_interface)
add_dependencies(zephyr_interface

View file

@ -91,6 +91,7 @@ function(toolchain_ld_link_elf)
${TOPT}
${TOOLCHAIN_LD_LINK_ELF_LINKER_SCRIPT}
${TOOLCHAIN_LD_LINK_ELF_LIBRARIES_POST_SCRIPT}
-fuse-ld=lld
${LINKERFLAGPREFIX},-Map=${TOOLCHAIN_LD_LINK_ELF_OUTPUT_MAP}
${LINKERFLAGPREFIX},--whole-archive

View file

@ -1,7 +1,8 @@
CONFIG_GPIO=y
#CONFIG_ASAN=y
CONFIG_CFI=y
#CONFIG_LLVM_USE_LLD=y
CONFIG_LLVM_USE_LLD=y
CONFIG_COMPILER_RT_RTLIB=y
#CONFIG_DEBUG=y
#CONFIG_DEBUG_INFO=y

View file

@ -133,7 +133,8 @@ ${NSI_EXE}: ${NSI_BUILD_PATH}/${RUNNER_LIB} ${LOCALIZED_EMBSW} ${NSI_EXTRA_LIBS}
-o $@ ${FINALLINK_FLAGS} -T ${NSI_BUILD_PATH}/linker_script.ld \
-B /nix/store/dbwp0scbb0rk78m636sb7cvycz8xzgyh-glibc-2.39-52/lib \
-B /nix/store/qfqjymymsd2x29yknsgllfiq1h64s3f4-gcc-12.3.0/lib/gcc/x86_64-unknown-linux-gnu/12.3.0/ \
-L /nix/store/qfqjymymsd2x29yknsgllfiq1h64s3f4-gcc-12.3.0/lib/gcc/x86_64-unknown-linux-gnu/12.3.0/
-L /nix/store/qfqjymymsd2x29yknsgllfiq1h64s3f4-gcc-12.3.0/lib/gcc/x86_64-unknown-linux-gnu/12.3.0/ \
-lclang_rt.ubsan_standalone-x86_64
Makefile: ;