diff options
| author | Victor Ding <victording@google.com> | 2020-12-23 12:17:45 +1100 |
|---|---|---|
| committer | Victor Ding <victording@google.com> | 2020-12-23 12:51:10 +1100 |
| commit | e8a564edc0a0c19633039848c68d5f81fcfcc00d (patch) | |
| tree | 33a909d4e16d86546eb506f3b6871c20c9b23f05 /src | |
| parent | 732afd41cff1d562e03a6e1611ef7baf9d7f5962 (diff) | |
| download | rust-e8a564edc0a0c19633039848c68d5f81fcfcc00d.tar.gz rust-e8a564edc0a0c19633039848c68d5f81fcfcc00d.zip | |
Add a test that rustc compiles and links separately
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-make-fulldeps/separate-link/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/run-make-fulldeps/separate-link/Makefile b/src/test/run-make-fulldeps/separate-link/Makefile new file mode 100644 index 00000000000..060484e89f9 --- /dev/null +++ b/src/test/run-make-fulldeps/separate-link/Makefile @@ -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) |
