about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2025-01-13 10:10:40 -0800
committerEric Huss <eric@huss.org>2025-01-13 10:10:40 -0800
commit75f3ebdc1ef8a32b48878a7961079c1bf8dd96e7 (patch)
treeab8a56354cf3f40f8a0cda3611adf44a85c6969e
parentb3ba4de8b29941f9a6826dd444aea38aad7cb726 (diff)
downloadrust-75f3ebdc1ef8a32b48878a7961079c1bf8dd96e7.tar.gz
rust-75f3ebdc1ef8a32b48878a7961079c1bf8dd96e7.zip
Mark rustbook as an external tool
It has been a bit of a pain trying to keep the lints in sync across
the submodule repositories, so the just turns it off.
-rw-r--r--src/bootstrap/src/core/build_steps/tool.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core/build_steps/tool.rs
index d0058eeb43d..9ae03ac7fe0 100644
--- a/src/bootstrap/src/core/build_steps/tool.rs
+++ b/src/bootstrap/src/core/build_steps/tool.rs
@@ -334,7 +334,11 @@ macro_rules! bootstrap_tool {
 }
 
 bootstrap_tool!(
-    Rustbook, "src/tools/rustbook", "rustbook", submodules = SUBMODULES_FOR_RUSTBOOK;
+    // This is marked as an external tool because it includes dependencies
+    // from submodules. Trying to keep the lints in sync between all the repos
+    // is a bit of a pain. Unfortunately it means the rustbook source itself
+    // doesn't deny warnings, but it is a relatively small piece of code.
+    Rustbook, "src/tools/rustbook", "rustbook", is_external_tool = true, submodules = SUBMODULES_FOR_RUSTBOOK;
     UnstableBookGen, "src/tools/unstable-book-gen", "unstable-book-gen";
     Tidy, "src/tools/tidy", "tidy";
     Linkchecker, "src/tools/linkchecker", "linkchecker";