Rollup merge of #37200 - zackmdavis:llvm_version_in_verbose_version, r=sanxiyn
include LLVM version in `--version --verbose` This is in the matter of #28405. ``` $ ./x86_64-unknown-linux-gnu/stage1/bin/rustc --version --verbose rustc 1.14.0-dev (8e05e7ee32016-10-15) binary: rustc commit-hash:8e05e7ee3ccommit-date: 2016-10-15 host: x86_64-unknown-linux-gnu release: 1.14.0-dev LLVM version: 3.9 ```
This commit is contained in:
commit
3ff8ee18aa
1 changed files with 4 additions and 0 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue