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
2703
2703
2704
2704
-O2 is currently mapped to -Copt-level=2
2705
2705
-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
2707
2707
2708
2708
The mapping may change over time to follow the intended semantics
2709
2709
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 \
329
329
$(objtree)/rust/compiler_builtins.o FORCE
330
330
$(call if_changed_dep,rustc_library)
331
331
332
- # ICE on `--extern macros`: https://github.com/rust-lang/rust/issues/56935
333
332
$(objtree ) /rust/kernel.o : private rustc_target_flags = --extern alloc \
334
333
--extern build_error \
335
- --extern macros=$(objtree)/rust/libmacros.so
334
+ --extern macros
336
335
$(objtree ) /rust/kernel.o : $(srctree ) /rust/kernel/lib.rs $(objtree ) /rust/alloc.o \
337
336
$(objtree)/rust/build_error.o \
338
337
$(objtree)/rust/libmacros.so $(objtree)/rust/bindings_generated.rs \
Original file line number Diff line number Diff line change 7
7
//! by providing this file.
8
8
//!
9
9
//! 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
11
11
//! in. We will work with upstream [`core`] to provide feature flags to disable
12
12
//! the parts we do not need. For the moment, we define them to [`panic!`] at
13
13
//! runtime for simplicity to catch mistakes, instead of performing surgery
You can’t perform that action at this time.
0 commit comments