File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ rustdoc-compiler_builtins: $(srctree)/rust/compiler_builtins.rs FORCE
5252# `no_global_oom_handling` functions refer to non-`no_global_oom_handling`
5353# functions. Ideally `rustdoc` would have a way to distinguish broken links
5454# due to things that are "configured out" vs. entirely non-existing ones.
55- rustdoc-alloc : private rustc_target_flags = \
55+ rustdoc-alloc : private rustc_target_flags = --cfg no_global_oom_handling \
5656 -Abroken_intra_doc_links
5757rustdoc-alloc : $(srctree ) /rust/alloc/lib.rs FORCE
5858 $(call if_changed,rustdoc)
@@ -276,6 +276,7 @@ $(objtree)/rust/compiler_builtins.o: $(srctree)/rust/compiler_builtins.rs \
276276 $(call if_changed_dep,rustc_library)
277277
278278$(objtree ) /rust/alloc.o : private skip_clippy = 1
279+ $(objtree ) /rust/alloc.o : private rustc_target_flags = --cfg no_global_oom_handling
279280$(objtree ) /rust/alloc.o : $(srctree ) /rust/alloc/lib.rs \
280281 $(objtree)/rust/compiler_builtins.o FORCE
281282 $(call if_changed_dep,rustc_library)
You can’t perform that action at this time.
0 commit comments