]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/tool.rs
Provide bootstrap tools with RUSTC in environment
[rust.git] / src / bootstrap / tool.rs
index 5d66632d92ceb49e85af55b6e1ddff0bc582f1e4..460dffb5c8a570a9568d82035b943c253fe6e36f 100644 (file)
@@ -700,6 +700,10 @@ pub fn tool_cmd(&self, tool: Tool) -> Command {
         }
 
         add_dylib_path(lib_paths, &mut cmd);
+
+        // Provide a RUSTC for this command to use.
+        cmd.env("RUSTC", &self.initial_rustc);
+
         cmd
     }
 }