summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/lto-smoke/Makefile
blob: 8bce708b44b0b3b47d85f5847c9ee5a93de8cdeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
include ../tools.mk

all: noparam bool_true bool_false thin fat

noparam:
	$(RUSTC) lib.rs
	$(RUSTC) main.rs -C lto
	$(call RUN,main)

bool_true:
	$(RUSTC) lib.rs
	$(RUSTC) main.rs -C lto=yes
	$(call RUN,main)


bool_false:
	$(RUSTC) lib.rs
	$(RUSTC) main.rs -C lto=off
	$(call RUN,main)

thin:
	$(RUSTC) lib.rs
	$(RUSTC) main.rs -C lto=thin
	$(call RUN,main)

fat:
	$(RUSTC) lib.rs
	$(RUSTC) main.rs -C lto=fat
	$(call RUN,main)