rust/src/test/run-make/lto-smoke-c/Makefile
Peter Atashian 1b0064ea60 Fix test fallout
Signed-off-by: Peter Atashian <retep998@gmail.com>
2016-01-16 12:35:00 -05:00

12 lines
243 B
Makefile

-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)