Skip to content

Commit 753dff6

Browse files
committed
rustbuild: Allow create_sysroot in stage0
Despite what the comment says, we actually need to do this. We're not cleaning out the stage0 compiler's sysroot, but rather just our own sysroot that we assembled previously.
1 parent 8f62c29 commit 753dff6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/bootstrap/compile.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,6 @@ fn compiler_file(compiler: &Path, file: &str) -> PathBuf {
258258
}
259259

260260
pub fn create_sysroot(build: &Build, compiler: &Compiler) {
261-
// nothing to do in stage0
262-
if compiler.stage == 0 {
263-
return
264-
}
265-
266261
let sysroot = build.sysroot(compiler);
267262
let _ = fs::remove_dir_all(&sysroot);
268263
t!(fs::create_dir_all(&sysroot));

0 commit comments

Comments
 (0)