Skip to content

Commit

Permalink
include LLVM version in --version --verbose
Browse files Browse the repository at this point in the history
This is in the matter of #28405.
  • Loading branch information
zackmdavis committed Oct 15, 2016
1 parent 8e05e7e commit 06123d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustc_driver/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,10 @@ 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()));
unsafe {
println!("LLVM version: {}.{}",
llvm::LLVMRustVersionMajor(), llvm::LLVMRustVersionMinor());
}
}
}

Expand Down

0 comments on commit 06123d3

Please sign in to comment.