about summary refs log tree commit diff
path: root/src/bootstrap/compile.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-01-03 14:07:30 -0800
committerAlex Crichton <alex@alexcrichton.com>2017-01-03 14:07:30 -0800
commit753dff63c60dba76217fc3ca18871695bdef14b6 (patch)
treeebe39bc622f4eb1e62b2bd1b24c5fe7634a3fd45 /src/bootstrap/compile.rs
parent8f62c2920077eb5cb81323142fc5dbe6ae8813c0 (diff)
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.
Diffstat (limited to 'src/bootstrap/compile.rs')
-rw-r--r--src/bootstrap/compile.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs
index a7633998aad..7f907d98b1e 100644
--- a/src/bootstrap/compile.rs
+++ b/src/bootstrap/compile.rs
@@ -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));