File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2703,7 +2703,7 @@ config RUST_OPT_LEVEL_SIMILAR_AS_CHOSEN_FOR_C
27032703
27042704 -O2 is currently mapped to -Copt-level=2
27052705 -O3 is currently mapped to -Copt-level=3
2706- -Os is currently mapped to -Copt-level=z
2706+ -Os is currently mapped to -Copt-level=s
27072707
27082708 The mapping may change over time to follow the intended semantics
27092709 of the choice for C as sensibly as possible.
Original file line number Diff line number Diff line change @@ -329,10 +329,9 @@ $(objtree)/rust/build_error.o: $(srctree)/rust/build_error.rs \
329329 $(objtree)/rust/compiler_builtins.o FORCE
330330 $(call if_changed_dep,rustc_library)
331331
332- # ICE on `--extern macros`: https://github.com/rust-lang/rust/issues/56935
333332$(objtree ) /rust/kernel.o : private rustc_target_flags = --extern alloc \
334333 --extern build_error \
335- --extern macros=$(objtree)/rust/libmacros.so
334+ --extern macros
336335$(objtree ) /rust/kernel.o : $(srctree ) /rust/kernel/lib.rs $(objtree ) /rust/alloc.o \
337336 $(objtree)/rust/build_error.o \
338337 $(objtree)/rust/libmacros.so $(objtree)/rust/bindings_generated.rs \
Original file line number Diff line number Diff line change 77//! by providing this file.
88//!
99//! At the moment, some builtins are required that should not be. For instance,
10- //! [`core`] has floating-point functionality which we should not be compiling
10+ //! [`core`] has 128-bit integers functionality which we should not be compiling
1111//! in. We will work with upstream [`core`] to provide feature flags to disable
1212//! the parts we do not need. For the moment, we define them to [`panic!`] at
1313//! runtime for simplicity to catch mistakes, instead of performing surgery
You can’t perform that action at this time.
0 commit comments