fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
432 B30 linesraw
1-include ../tools.mk
2
3all: noparam bool_true bool_false thin fat
4
5noparam:
6	$(RUSTC) lib.rs
7	$(RUSTC) main.rs -C lto
8	$(call RUN,main)
9
10bool_true:
11	$(RUSTC) lib.rs
12	$(RUSTC) main.rs -C lto=yes
13	$(call RUN,main)
14
15
16bool_false:
17	$(RUSTC) lib.rs
18	$(RUSTC) main.rs -C lto=off
19	$(call RUN,main)
20
21thin:
22	$(RUSTC) lib.rs
23	$(RUSTC) main.rs -C lto=thin
24	$(call RUN,main)
25
26fat:
27	$(RUSTC) lib.rs
28	$(RUSTC) main.rs -C lto=fat
29	$(call RUN,main)
30