diff options
| author | Collins Abitekaniza <collins.abitekaniza@osmosisworld.com> | 2018-05-24 03:20:47 +0300 |
|---|---|---|
| committer | Collins Abitekaniza <collins.abitekaniza@osmosisworld.com> | 2018-06-03 04:59:55 +0300 |
| commit | ce10910b69c7c2c90a9ba2aeb7c498cb2cfd3ac9 (patch) | |
| tree | 7e07bba273bb9a57ee96517465f691c3a6290706 /src/bootstrap/lib.rs | |
| parent | 42ee6d5fd55574eb2778b8ddc161e5332a5635bd (diff) | |
| download | rust-ce10910b69c7c2c90a9ba2aeb7c498cb2cfd3ac9.tar.gz rust-ce10910b69c7c2c90a9ba2aeb7c498cb2cfd3ac9.zip | |
refactor, make requested changes
Diffstat (limited to 'src/bootstrap/lib.rs')
| -rw-r--r-- | src/bootstrap/lib.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 4367fb36947..7576505e295 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -312,9 +312,10 @@ pub enum Mode { /// Build libtest, placing output in the "stageN-test" directory. Test, - /// Build librustc, codegen and compiler libraries, placing output - /// in the "stageN-rustc" directory. + /// Build librustc, and compiler libraries, placing output in the "stageN-rustc" directory. Rustc, + + /// Build codegen libraries, placing output in the "stageN-codegen" directory Codegen, /// Build some tools, placing output in the "stageN-tools" directory. @@ -522,12 +523,10 @@ impl Build { fn stage_out(&self, compiler: Compiler, mode: Mode) -> PathBuf { let suffix = match mode { Mode::Std => "-std", - Mode::ToolStd => "-tools", Mode::Test => "-test", - Mode::ToolTest => "-tools", Mode::Codegen => "-rustc", Mode::Rustc => "-rustc", - Mode::ToolRustc => "-tools", + Mode::ToolStd | Mode::ToolTest | Mode::ToolRustc => "-tools", }; self.out.join(&*compiler.host) .join(format!("stage{}{}", compiler.stage, suffix)) |
