mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Merge branch 'feature/update-esp-clang-to-esp-21.1.3_20260304' into 'master'
feat(tools): update esp-clang version to esp-21.1.3_20260408 Closes IDF-14965, LLVM-501, and LLVM-531 See merge request espressif/esp-idf!46361
This commit is contained in:
@@ -84,4 +84,23 @@ if(CONFIG_IDF_TOOLCHAIN_GCC)
|
||||
else()
|
||||
message(FATAL_ERROR "Unknown Espressif architecture: ${CONFIG_IDF_TARGET_ARCH}")
|
||||
endif()
|
||||
elseif(CONFIG_IDF_TOOLCHAIN_CLANG)
|
||||
idf_toolchain_add_flags(LINK_OPTIONS "-nostartfiles --ld-path=${CMAKE_LINKER} -z noexecstack")
|
||||
# Clean compile options that were added by previous configurations and may be outdated
|
||||
idf_toolchain_remove_flags(COMPILE_OPTIONS "-mcpu=")
|
||||
if(CONFIG_IDF_TARGET_ARCH_XTENSA)
|
||||
idf_toolchain_add_flags(COMPILE_OPTIONS "--target=xtensa-esp-elf")
|
||||
idf_toolchain_add_flags(ASM_COMPILE_OPTIONS "-Xassembler --longcalls")
|
||||
idf_toolchain_add_flags(COMPILE_OPTIONS "-mcpu=${CONFIG_IDF_TARGET}")
|
||||
elseif(CONFIG_IDF_TARGET_ARCH_RISCV)
|
||||
idf_toolchain_add_flags(COMPILE_OPTIONS "--target=riscv32-esp-elf")
|
||||
if(CONFIG_IDF_TARGET_ESP32P4 AND CONFIG_ESP32P4_SELECTS_REV_LESS_V3)
|
||||
idf_toolchain_add_flags(COMPILE_OPTIONS "-mcpu=esp32p4eco4")
|
||||
else()
|
||||
idf_toolchain_add_flags(COMPILE_OPTIONS "-mcpu=${CONFIG_IDF_TARGET}")
|
||||
endif()
|
||||
idf_toolchain_rerun_abi_detection()
|
||||
else()
|
||||
message(FATAL_ERROR "Unknown Espressif architecture: ${CONFIG_IDF_TARGET_ARCH}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user