fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
395 B9 linesraw
1-include ../tools.mk
2
3all:
4	# Compile a `#![no_builtins]` rlib crate
5	$(RUSTC) no_builtins.rs
6	# Build an executable that depends on that crate using LTO. The no_builtins crate doesn't
7	# participate in LTO, so its rlib must be explicitly linked into the final binary. Verify this by
8	# grepping the linker arguments.
9	$(RUSTC) main.rs -C lto -Z print-link-args | $(CGREP) 'libno_builtins.rlib'