From 684003028335580eae0d12abbe6307db9cd0ee7b Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Thu, 9 Dec 2021 11:20:55 -0600 Subject: [PATCH] Default to `doc-stage = 2` for the tools profile This already enables `download-rustc`, so it's quick to build rustdoc, and this makes it less confusing when changes to rustdoc aren't reflected in the docs. Note that this uses 2 and not 1 because `download-rustc` only affects stage 2 runs. --- src/bootstrap/defaults/config.tools.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bootstrap/defaults/config.tools.toml b/src/bootstrap/defaults/config.tools.toml index 182fb0fb067..88359fff191 100644 --- a/src/bootstrap/defaults/config.tools.toml +++ b/src/bootstrap/defaults/config.tools.toml @@ -11,6 +11,10 @@ incremental = true # This cuts compile times by almost 60x, but means you can't modify the compiler. download-rustc = "if-unchanged" +[build] +# Document with the in-tree rustdoc by default, since `download-rustc` makes it quick to compile. +doc-stage = 2 + [llvm] # Will download LLVM from CI if available on your platform. download-ci-llvm = "if-available"