Skip to content

Commit 0a8f9a3

Browse files
committed
Use SPEED_OPTIMIZATIONS on riscv for GCC 14.3
I stuck this here for testing; if this helps, we'll put it into the SDK. Signed-off-by: Keith Packard <[email protected]>
1 parent ea1b9db commit 0a8f9a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Kconfig.zephyr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,8 @@ choice COMPILER_OPTIMIZATIONS
491491
prompt "Optimization level"
492492
default NO_OPTIMIZATIONS if COVERAGE
493493
default DEBUG_OPTIMIZATIONS if DEBUG
494+
# gcc 14.3 -Os is broken on riscv. This setting should be in the SDK, it's here for testing
495+
default SPEED_OPTIMIZATIONS if "$(TOOLCHAIN_VARIANT_COMPILER)" = "gnu" && RISCV
494496
default SIZE_OPTIMIZATIONS_AGGRESSIVE if "$(TOOLCHAIN_VARIANT_COMPILER)" = "llvm"
495497
default SIZE_OPTIMIZATIONS
496498
help

0 commit comments

Comments
 (0)