14 lines
438 B
Diff
14 lines
438 B
Diff
|
--- a/Makefile
|
||
|
+++ b/Makefile
|
||
|
@@ -820,6 +820,10 @@ KBUILD_CFLAGS += -Os
|
||
|
KBUILD_RUSTFLAGS += -Copt-level=s
|
||
|
endif
|
||
|
|
||
|
+ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3
|
||
|
+KBUILD_CFLAGS += $(call cc-option,-fivopts)
|
||
|
+endif
|
||
|
+
|
||
|
# Always set `debug-assertions` and `overflow-checks` because their default
|
||
|
# depends on `opt-level` and `debug-assertions`, respectively.
|
||
|
KBUILD_RUSTFLAGS += -Cdebug-assertions=$(if $(CONFIG_RUST_DEBUG_ASSERTIONS),y,n)
|