rust/tests/run-make-fulldeps/lto-smoke-c/Makefile
2023-01-11 09:32:08 +00:00

12 lines
242 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)