Skip to content

Commit 33907e2

Browse files
authored
Auto 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 (8e05e7e 2016-10-15) binary: rustc commit-hash: 8e05e7e commit-date: 2016-10-15 host: x86_64-unknown-linux-gnu release: 1.14.0-dev LLVM version: 3.9 ```
2 parents 6dc035e + 06123d3 commit 33907e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc_driver/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,10 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
729729
println!("commit-date: {}", unw(commit_date_str()));
730730
println!("host: {}", config::host_triple());
731731
println!("release: {}", unw(release_str()));
732+
unsafe {
733+
println!("LLVM version: {}.{}",
734+
llvm::LLVMRustVersionMajor(), llvm::LLVMRustVersionMinor());
735+
}
732736
}
733737
}
734738

0 commit comments

Comments
 (0)