We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bd52af commit 5be5b70Copy full SHA for 5be5b70
Makefile
@@ -807,6 +807,8 @@ KBUILD_CFLAGS += -Os
807
KBUILD_RUSTFLAGS_OPT_LEVEL_MAP := z
808
endif
809
810
+# Always set `debug-assertions` and `overflow-checks` because their default
811
+# depends on `opt-level` and `debug-assertions`, respectively.
812
KBUILD_RUSTFLAGS += -Cdebug-assertions=$(if $(CONFIG_RUST_DEBUG_ASSERTIONS),y,n)
813
KBUILD_RUSTFLAGS += -Coverflow-checks=$(if $(CONFIG_RUST_OVERFLOW_CHECKS),y,n)
814
KBUILD_RUSTFLAGS += -Copt-level=$\
0 commit comments