Skip to content

Commit 415a9a2

Browse files
Add a test that -Zquery-dep-graph -Zdump-dep-graph works
1 parent 6f78eed commit 415a9a2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/test/run-make/dep-graph/Makefile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-include ../../run-make-fulldeps/tools.mk
2+
3+
# ignore-cross-compile
4+
5+
# Just verify that we successfully run and produce dep graphs when requested.
6+
7+
all:
8+
RUST_DEP_GRAPH=$(TMPDIR)/dep-graph $(RUSTC) \
9+
-Cincremental=$(TMPDIR)/incr \
10+
-Zquery-dep-graph -Zdump-dep-graph foo.rs
11+
test -f $(TMPDIR)/dep-graph.txt
12+
test -f $(TMPDIR)/dep-graph.dot

src/test/run-make/dep-graph/foo.rs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fn main() {}

0 commit comments

Comments
 (0)