Skip to content

Commit 1f1b619

Browse files
committed
rust: compile in bootstrapping mode
Since we are going to use stable releases [*], we need to enable the bootstrapping mode to use the unstable features. [*] For the moment, it is a beta due to a fix we need for LLVM 12, but the same logic applies. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent e415c34 commit 1f1b619

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ READELF = $(CROSS_COMPILE)readelf
460460
STRIP = $(CROSS_COMPILE)strip
461461
endif
462462
RUSTC = rustc
463+
RUSTC_BOOTSTRAP = 1
463464
RUSTFMT = rustfmt
464465
CLIPPY_DRIVER = clippy-driver
465466
BINDGEN = bindgen
@@ -548,7 +549,8 @@ ifdef RUST_LIB_SRC
548549
export RUST_LIB_SRC
549550
endif
550551

551-
export ARCH SRCARCH CONFIG_SHELL BASH HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE LD CC RUSTC BINDGEN
552+
export ARCH SRCARCH CONFIG_SHELL BASH HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE LD CC
553+
export RUSTC RUSTC_BOOTSTRAP BINDGEN
552554
export CPP AR NM STRIP OBJCOPY OBJDUMP READELF PAHOLE RESOLVE_BTFIDS LEX YACC AWK INSTALLKERNEL
553555
export PERL PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX
554556
export KGZIP KBZIP2 KLZOP LZMA LZ4 XZ ZSTD

0 commit comments

Comments
 (0)