From: Eduard-Mihai Burtescu Date: Sun, 25 Nov 2018 02:43:00 +0000 (+0200) Subject: tests: support cross-compilation in run-make/rustc-macro-dep-files. X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=f083c32da7b74154611af6e2153f3ca2b28782e0;p=rust.git tests: support cross-compilation in run-make/rustc-macro-dep-files. --- 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