Skip to content

Commit

Permalink
Add a test that rustc compiles and links separately
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Ding committed Dec 23, 2020
1 parent 732afd4 commit e8a564e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/run-make-fulldeps/separate-link/Makefile
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit e8a564e

Please sign in to comment.