rust/tests/run-make/lto-no-link-whole-rlib/Makefile

10 lines
186 B
Makefile

# ignore-cross-compile
include ../tools.mk
all: $(call NATIVE_STATICLIB,foo) $(call NATIVE_STATICLIB,bar)
$(RUSTC) lib1.rs
$(RUSTC) lib2.rs
$(RUSTC) main.rs -Clto
$(call RUN,main)