summary refs log tree commit diff
path: root/src/test/run-make/lto-syntax-extension/Makefile
blob: c522f30e2df13875396aff26f637be0af23df43c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-include ../tools.mk

# This test attempts to use syntax extensions, which are known to be
# incompatible with stage1 at the moment.

ifeq ($(RUST_BUILD_STAGE),1)
DOTEST=
else
DOTEST=dotest
endif

all: $(DOTEST)

dotest:
	env
	$(RUSTC) lib.rs
	$(RUSTC) main.rs -Z lto
	$(call RUN,main)