mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Add a test that -Zquery-dep-graph -Zdump-dep-graph works
This commit is contained in:
parent
6f78eed1c7
commit
415a9a2ea6
12
src/test/run-make/dep-graph/Makefile
Normal file
12
src/test/run-make/dep-graph/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
-include ../../run-make-fulldeps/tools.mk
|
||||
|
||||
# ignore-cross-compile
|
||||
|
||||
# Just verify that we successfully run and produce dep graphs when requested.
|
||||
|
||||
all:
|
||||
RUST_DEP_GRAPH=$(TMPDIR)/dep-graph $(RUSTC) \
|
||||
-Cincremental=$(TMPDIR)/incr \
|
||||
-Zquery-dep-graph -Zdump-dep-graph foo.rs
|
||||
test -f $(TMPDIR)/dep-graph.txt
|
||||
test -f $(TMPDIR)/dep-graph.dot
|
1
src/test/run-make/dep-graph/foo.rs
Normal file
1
src/test/run-make/dep-graph/foo.rs
Normal file
@ -0,0 +1 @@
|
||||
fn main() {}
|
Loading…
Reference in New Issue
Block a user