Skip to content

Commit 4eb9cc6

Browse files
committed
esp_event test: Disable linker relaxations in this component, to temporarily workaround a linker bug
1 parent d294ac3 commit 4eb9cc6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
idf_component_register(SRC_DIRS "."
22
PRIV_INCLUDE_DIRS . ../private_include
33
PRIV_REQUIRES cmock test_utils esp_event driver)
4+
5+
if(CONFIG_IDF_TARGET_ARCH_RISCV)
6+
# Temporary workaround for a linker issue on RISC-V that should be resolved in binutils 2.35 (internal ref: GCC-101)
7+
target_compile_options(${COMPONENT_LIB} PRIVATE -mno-relax)
8+
endif()

0 commit comments

Comments
 (0)