Skip to content

Commit 622b593

Browse files
committed
rust: alloc: enable no_global_oom_handling
Now both `alloc` and users are prepared to be compiled with `no_global_oom_handling`. Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 90f1659 commit 622b593

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/Makefile

+2-1
Original file line numberDiff line numberDiff 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
5757
rustdoc-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)

0 commit comments

Comments
 (0)