diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-01-03 14:07:30 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-01-03 14:07:30 -0800 |
| commit | 753dff63c60dba76217fc3ca18871695bdef14b6 (patch) | |
| tree | ebe39bc622f4eb1e62b2bd1b24c5fe7634a3fd45 /src/bootstrap | |
| parent | 8f62c2920077eb5cb81323142fc5dbe6ae8813c0 (diff) | |
| download | rust-753dff63c60dba76217fc3ca18871695bdef14b6.tar.gz rust-753dff63c60dba76217fc3ca18871695bdef14b6.zip | |
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')
| -rw-r--r-- | src/bootstrap/compile.rs | 5 |
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)); |
