about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-11-09 01:15:20 -0800
committerGitHub <noreply@github.com>2016-11-09 01:15:20 -0800
commit966c70085adc69eecf9c8cd1f128872e8d90614d (patch)
treead53f9657bc7423185c908874c4dc57d6566802d /src
parent0491a231777735ba050c208ce621df93f863bf7c (diff)
parent860c6ab3c19000c403584a5bf21e482b5efeab6d (diff)
Auto merge of #37651 - alexcrichton:fix-deps, r=alexcrichton
rustbuild: Fix dependencies of check-error-index

This depends on the error index actually existing rather than just the tool to
generate the error index.
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/check.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs
index 611630c5730..f27f9641036 100644
--- a/src/bootstrap/check.rs
+++ b/src/bootstrap/check.rs
@@ -242,7 +242,9 @@ pub fn docs(build: &Build, compiler: &Compiler) {
 pub fn error_index(build: &Build, compiler: &Compiler) {
     println!("Testing error-index stage{}", compiler.stage);
 
-    let output = testdir(build, compiler.host).join("error-index.md");
+    let dir = testdir(build, compiler.host);
+    t!(fs::create_dir_all(&dir));
+    let output = dir.join("error-index.md");
     build.run(build.tool_cmd(compiler, "error_index_generator")
                    .arg("markdown")
                    .arg(&output)