Skip to content

Commit 1e1aa4c

Browse files
keith-packardtpambor
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 5afb262 commit 1e1aa4c

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

0 commit comments

Comments
 (0)