From 4eb9cc68a6136b84cac4fe68a5aadfcb936bcae8 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 11 Feb 2021 17:00:55 +1100 Subject: [PATCH] esp_event test: Disable linker relaxations in this component, to temporarily workaround a linker bug --- components/esp_event/test/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/esp_event/test/CMakeLists.txt b/components/esp_event/test/CMakeLists.txt index 44e4b7ec84..b6690eb027 100644 --- a/components/esp_event/test/CMakeLists.txt +++ b/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()