From 753dff63c60dba76217fc3ca18871695bdef14b6 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 3 Jan 2017 14:07:30 -0800 Subject: [PATCH] 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. --- src/bootstrap/compile.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index a7633998aad8b..7f907d98b1ec4 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));