Skip to content

Commit

Permalink
Rollup merge of rust-lang#37200 - zackmdavis:llvm_version_in_verbose_…
Browse files Browse the repository at this point in the history
…version, r=sanxiyn

include LLVM version in `--version --verbose`

This is in the matter of rust-lang#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
```
  • Loading branch information
GuillaumeGomez committed Oct 17, 2016
2 parents 9569ea0 + 06123d3 commit 3ff8ee1
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 3ff8ee1

Please sign in to comment.