diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-10-17 23:07:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-17 23:07:53 +0200 |
| commit | 3ff8ee18aa0865ffcd96beec52ad1f09d9ffd8ab (patch) | |
| tree | 458e8b4c4d735d4a9d91db423d04b39bbb4edf18 /src | |
| parent | 9569ea0d2fceebb9234b1557ef2b3a7ce865f7b9 (diff) | |
| parent | 06123d3afe0fe6e24863f0043d4d2e28bed482da (diff) | |
| download | rust-3ff8ee18aa0865ffcd96beec52ad1f09d9ffd8ab.tar.gz rust-3ff8ee18aa0865ffcd96beec52ad1f09d9ffd8ab.zip | |
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 (8e05e7ee3 2016-10-15) binary: rustc commit-hash: 8e05e7ee3c19a5594b79d67c8390cef78970be7c commit-date: 2016-10-15 host: x86_64-unknown-linux-gnu release: 1.14.0-dev LLVM version: 3.9 ```
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_driver/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index f051c869249..6972bdac5e1 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -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()); + } } } |
