]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/sanity.rs
Rollup merge of #105310 - compiler-errors:issue-105288, r=eholk
[rust.git] / src / bootstrap / sanity.rs
index 35c66cfd95f2f520bf18d47ed885dd2a6eeb645e..8a40b0f64f4b6c5673ce6fc1c885f4622958c0e0 100644 (file)
@@ -74,7 +74,7 @@ pub fn check(build: &mut Build) {
     let mut cmd_finder = Finder::new();
     // If we've got a git directory we're gonna need git to update
     // submodules and learn about various other aspects.
-    if build.rust_info.is_managed_git_subrepository() {
+    if build.rust_info().is_managed_git_subrepository() {
         cmd_finder.must_have("git");
     }
 
@@ -140,6 +140,13 @@ pub fn check(build: &mut Build) {
         .map(|p| cmd_finder.must_have(p))
         .or_else(|| cmd_finder.maybe_have("gdb"));
 
+    build.config.reuse = build
+        .config
+        .reuse
+        .take()
+        .map(|p| cmd_finder.must_have(p))
+        .or_else(|| cmd_finder.maybe_have("reuse"));
+
     // We're gonna build some custom C code here and there, host triples
     // also build some C++ shims for LLVM so we need a C++ compiler.
     for target in &build.targets {