summaryrefslogtreecommitdiffstats
path: root/tests/run-make/lto-smoke-c/Makefile
blob: f1ba3d95da2920e5cb47fd6898b593c03a30407c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# ignore-cross-compile
include ../tools.mk

# Apparently older versions of GCC segfault if -g is passed...
CC := $(CC:-g=)

all:
	$(RUSTC) foo.rs -C lto
	$(CC) bar.c $(call STATICLIB,foo) \
		$(call OUT_EXE,bar) \
		$(EXTRACFLAGS) $(EXTRACXXFLAGS)
	$(call RUN,bar)