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
276 B12 linesraw
1-include ../tools.mk
2
3all:
4	$(RUSTC) lib.rs
5
6	# the compiler needs to copy and modify the rlib file when performing
7	# LTO, so we should ensure that it can cope with the original rlib
8	# being read-only.
9	chmod 444 $(TMPDIR)/*.rlib
10
11	$(RUSTC) main.rs -C lto
12	$(call RUN,main)