include LLVM version in --version --verbose

This is in the matter of #28405.
This commit is contained in:
Zack M. Davis 2016-10-15 15:57:28 -07:00
parent 8e05e7ee3c
commit 06123d3afe

View File

@ -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());
}
}
}