]> git.lizzy.rs Git - rust.git/commitdiff
tests: support cross-compilation in run-make/rustc-macro-dep-files.
authorEduard-Mihai Burtescu <edy.burt@gmail.com>
Sun, 25 Nov 2018 02:43:00 +0000 (04:43 +0200)
committerEduard-Mihai Burtescu <edy.burt@gmail.com>
Fri, 30 Nov 2018 04:15:20 +0000 (06:15 +0200)
src/test/run-make/rustc-macro-dep-files/Makefile

index 68405851f9db5b0d6e42b116a83536c34c86d0fc..0420a389168f1a51b8a46f2bacb8f4a98cf71f0e 100644 (file)
@@ -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