Skip to content

Commit f083c32

Browse files
committed
tests: support cross-compilation in run-make/rustc-macro-dep-files.
1 parent 15c77ca commit f083c32

File tree

1 file changed

+4
-2
lines changed
  • src/test/run-make/rustc-macro-dep-files

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
-include ../../run-make-fulldeps/tools.mk
22

3+
# FIXME(eddyb) provide `HOST_RUSTC` and `TARGET_RUSTC`
4+
# instead of hardcoding them everywhere they're needed.
35
all:
4-
$(RUSTC) foo.rs
5-
$(RUSTC) bar.rs --emit dep-info
6+
$(BARE_RUSTC) foo.rs --out-dir $(TMPDIR)
7+
$(RUSTC) bar.rs --target $(TARGET) --emit dep-info
68
$(CGREP) -v "proc-macro source" < $(TMPDIR)/bar.d

0 commit comments

Comments
 (0)