Skip to content

Commit 11cb67b

Browse files
keith-packardstephanosio
authored andcommitted
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 1a13f37 commit 11cb67b

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
@@ -481,6 +481,8 @@ choice COMPILER_OPTIMIZATIONS
481481
prompt "Optimization level"
482482
default NO_OPTIMIZATIONS if COVERAGE
483483
default DEBUG_OPTIMIZATIONS if DEBUG
484+
# gcc 14.3 -Os is broken on riscv. This setting should be in the SDK, it's here for testing
485+
default SPEED_OPTIMIZATIONS if "$(TOOLCHAIN_VARIANT_COMPILER)" = "gnu" && RISCV
484486
default SIZE_OPTIMIZATIONS_AGGRESSIVE if "$(TOOLCHAIN_VARIANT_COMPILER)" = "llvm"
485487
default SIZE_OPTIMIZATIONS
486488
help

0 commit comments

Comments
 (0)