]> git.proxmox.com Git - rustc.git/blob - tests/run-make/lto-smoke/Makefile
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / run-make / lto-smoke / Makefile
1 # ignore-cross-compile
2 include ../tools.mk
3
4 all: noparam bool_true bool_false thin fat
5
6 noparam:
7 $(RUSTC) lib.rs
8 $(RUSTC) main.rs -C lto
9 $(call RUN,main)
10
11 bool_true:
12 $(RUSTC) lib.rs
13 $(RUSTC) main.rs -C lto=yes
14 $(call RUN,main)
15
16
17 bool_false:
18 $(RUSTC) lib.rs
19 $(RUSTC) main.rs -C lto=off
20 $(call RUN,main)
21
22 thin:
23 $(RUSTC) lib.rs
24 $(RUSTC) main.rs -C lto=thin
25 $(call RUN,main)
26
27 fat:
28 $(RUSTC) lib.rs
29 $(RUSTC) main.rs -C lto=fat
30 $(call RUN,main)
31