Skip to content

Commit 13b1a80

Browse files
committed
Only run check-linkchecker when actually building docs
Otherwise the build fails, when running tests but not building docs, e.g.: https://buildd.debian.org/status/fetch.php?pkg=rustc&arch=ppc64el&ver=1.17.0%2Bdfsg2-3&stamp=1497403375&raw=0
1 parent 62c2452 commit 13b1a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/step.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
463463
rules.test("check-linkchecker", "src/tools/linkchecker")
464464
.dep(|s| s.name("tool-linkchecker").stage(0))
465465
.dep(|s| s.name("default:doc"))
466-
.default(true)
466+
.default(build.config.docs)
467467
.host(true)
468468
.run(move |s| check::linkcheck(build, s.target));
469469
rules.test("check-cargotest", "src/tools/cargotest")

0 commit comments

Comments
 (0)