summaryrefslogtreecommitdiffstats
path: root/tests/run-make/lto-smoke/Makefile
blob: 13a09fce73404670565a48a54aa49ccabe58b405 (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
31
# ignore-cross-compile
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)