From f083c32da7b74154611af6e2153f3ca2b28782e0 Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Sun, 25 Nov 2018 04:43:00 +0200 Subject: [PATCH] tests: support cross-compilation in run-make/rustc-macro-dep-files. --- src/test/run-make/rustc-macro-dep-files/Makefile | 6 ++++-- 1 file 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 -- 2.44.0