Skip to content

Commit cbc40f6

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 <keithp@keithp.com>
1 parent 4160026 commit cbc40f6

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

0 commit comments

Comments
 (0)