Skip to content

Commit

Permalink
rustbuild: Allow create_sysroot in stage0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton committed Jan 3, 2017
1 parent 8f62c29 commit 753dff6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/bootstrap/compile.rs
Expand Up @@ -258,11 +258,6 @@ fn compiler_file(compiler: &Path, file: &str) -> PathBuf {
}

pub fn create_sysroot(build: &Build, compiler: &Compiler) {
// nothing to do in stage0
if compiler.stage == 0 {
return
}

let sysroot = build.sysroot(compiler);
let _ = fs::remove_dir_all(&sysroot);
t!(fs::create_dir_all(&sysroot));
Expand Down

0 comments on commit 753dff6

Please sign in to comment.