about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2016-10-15 15:57:28 -0700
committerZack M. Davis <code@zackmdavis.net>2016-10-15 15:57:28 -0700
commit06123d3afe0fe6e24863f0043d4d2e28bed482da (patch)
tree29170d7d732b20bb55d71b3bd91f76c62c0e959e /src
parent8e05e7ee3c19a5594b79d67c8390cef78970be7c (diff)
downloadrust-06123d3afe0fe6e24863f0043d4d2e28bed482da.tar.gz
rust-06123d3afe0fe6e24863f0043d4d2e28bed482da.zip
include LLVM version in `--version --verbose`
This is in the matter of #28405.
Diffstat (limited to 'src')
-rw-r--r--src/librustc_driver/lib.rs4
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());
+        }
     }
 }