Add a test that rustc compiles and links separately

This commit is contained in:
Victor Ding 2020-12-23 12:17:45 +11:00
parent 732afd41cf
commit e8a564edc0

View File

@ -0,0 +1,6 @@
-include ../tools.mk
all:
echo 'fn main(){}' | $(RUSTC) -Z no-link -
$(RUSTC) -Z link-only $(TMPDIR)/rust_out.rlink
$(call RUN,rust_out)