Commit 9cbba96c authored by Keith Packard's avatar Keith Packard Committed by Stephanos Ioannidis
Browse files

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: default avatarKeith Packard <keithp@keithp.com>
parent 61044303
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -481,6 +481,8 @@ choice COMPILER_OPTIMIZATIONS
	prompt "Optimization level"
	default NO_OPTIMIZATIONS    if COVERAGE
	default DEBUG_OPTIMIZATIONS if DEBUG
	# gcc 14.3 -Os is broken on riscv. This setting should be in the SDK, it's here for testing
	default SPEED_OPTIMIZATIONS if "$(TOOLCHAIN_VARIANT_COMPILER)" = "gnu" && RISCV
	default SIZE_OPTIMIZATIONS_AGGRESSIVE if "$(TOOLCHAIN_VARIANT_COMPILER)" = "llvm"
	default SIZE_OPTIMIZATIONS
	help