File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 28
28
cargo_quiet =--verbose
29
29
endif
30
30
31
+ core-cfgs = \
32
+ --cfg no_fp_fmt_parse
33
+
31
34
alloc-cfgs = \
32
35
--cfg no_global_oom_handling \
33
36
--cfg no_rc \
@@ -331,9 +334,10 @@ $(objtree)/rust/kernel.o: $(srctree)/rust/kernel/lib.rs $(objtree)/rust/alloc.o
331
334
# Targets that need to expand twice
332
335
.SECONDEXPANSION :
333
336
$(objtree ) /rust/core.o : private skip_clippy = 1
334
- $(objtree ) /rust/core.o : private rustc_target_flags = --cfg no_fp_fmt_parse
337
+ $(objtree ) /rust/core.o : private rustc_target_flags = $( core-cfgs )
335
338
$(objtree ) /rust/core.o : $$(RUST_LIB_SRC ) /core/src/lib.rs FORCE
336
339
$(call if_changed_dep,rustc_library)
337
340
341
+ rustdoc-core : private rustc_target_flags = $(core-cfgs )
338
342
rustdoc-core : $$(RUST_LIB_SRC ) /core/src/lib.rs FORCE
339
343
$(call if_changed,rustdoc)
You can’t perform that action at this time.
0 commit comments