2024-12-10 06:44:25 +03:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2024-12-16 07:12:49 +03:00
|
|
|
@@ -821,6 +821,10 @@ KBUILD_CFLAGS += -Os
|
2024-12-10 06:44:25 +03:00
|
|
|
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)
|