Skip to content

Commit

Permalink
rustc_driver: Omit stage info for stage2+
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed Jul 6, 2015
1 parent 555b021 commit e66ac43
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/librustc_driver/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,6 @@ pub fn stage_str() -> Option<&'static str> {
Some("stage0")
} else if cfg!(stage1) {
Some("stage1")
} else if cfg!(stage2) {
Some("stage2")
} else if cfg!(stage3) {
Some("stage3")
} else {
None
}
Expand All @@ -508,7 +504,9 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
println!("commit-date: {}", unw(commit_date_str()));
println!("host: {}", config::host_triple());
println!("release: {}", unw(release_str()));
println!("stage: {}", unw(stage_str()));
if let Some(stage) = stage_str() {
println!("stage: {}", stage);
}
}
}

Expand Down

0 comments on commit e66ac43

Please sign in to comment.