about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2018-11-25 04:43:00 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2018-11-30 06:15:20 +0200
commitf083c32da7b74154611af6e2153f3ca2b28782e0 (patch)
treeb7a7a96b75064afa1d31539d8b5ab7d930a42dd9
parent15c77caf59c185c01d60925bd8b21eb549a0a818 (diff)
downloadrust-f083c32da7b74154611af6e2153f3ca2b28782e0.tar.gz
rust-f083c32da7b74154611af6e2153f3ca2b28782e0.zip
tests: support cross-compilation in run-make/rustc-macro-dep-files.
-rw-r--r--src/test/run-make/rustc-macro-dep-files/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/run-make/rustc-macro-dep-files/Makefile b/src/test/run-make/rustc-macro-dep-files/Makefile
index 68405851f9d..0420a389168 100644
--- a/src/test/run-make/rustc-macro-dep-files/Makefile
+++ b/src/test/run-make/rustc-macro-dep-files/Makefile
@@ -1,6 +1,8 @@
 -include ../../run-make-fulldeps/tools.mk
 
+# FIXME(eddyb) provide `HOST_RUSTC` and `TARGET_RUSTC`
+# instead of hardcoding them everywhere they're needed.
 all:
-	$(RUSTC) foo.rs
-	$(RUSTC) bar.rs --emit dep-info
+	$(BARE_RUSTC) foo.rs --out-dir $(TMPDIR)
+	$(RUSTC) bar.rs --target $(TARGET) --emit dep-info
 	$(CGREP) -v "proc-macro source" < $(TMPDIR)/bar.d