Sfoglia il codice sorgente

esp_event test: Disable linker relaxations in this component, to temporarily workaround a linker bug

Angus Gratton 5 anni fa
parent
commit
4eb9cc68a6
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      components/esp_event/test/CMakeLists.txt

+ 5 - 0
components/esp_event/test/CMakeLists.txt

@@ -1,3 +1,8 @@
 idf_component_register(SRC_DIRS "."
                        PRIV_INCLUDE_DIRS . ../private_include
                        PRIV_REQUIRES cmock test_utils esp_event driver)
+
+if(CONFIG_IDF_TARGET_ARCH_RISCV)
+    # Temporary workaround for a linker issue on RISC-V that should be resolved in binutils 2.35 (internal ref: GCC-101)
+    target_compile_options(${COMPONENT_LIB} PRIVATE -mno-relax)
+endif()