about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-01-13 12:15:42 +0100
committerGitHub <noreply@github.com>2021-01-13 12:15:42 +0100
commit64c1b0d614949f405d8b4498a3b2ea59d9ec230e (patch)
treebe0956cc5b6f573e3b052b89c4e501fbf5f9ff1f /compiler
parenta6403b0f04b58a35cb9f3e544b2847ee09bcf3a4 (diff)
downloadrust-64c1b0d614949f405d8b4498a3b2ea59d9ec230e.tar.gz
rust-64c1b0d614949f405d8b4498a3b2ea59d9ec230e.zip
Fix -Cpasses=list and llvm version print with -vV
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_driver/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs
index f434673c39e..c668c94bb08 100644
--- a/compiler/rustc_driver/src/lib.rs
+++ b/compiler/rustc_driver/src/lib.rs
@@ -808,7 +808,7 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
         println!("commit-date: {}", unw(util::commit_date_str()));
         println!("host: {}", config::host_triple());
         println!("release: {}", unw(util::release_str()));
-        if cfg!(llvm) {
+        if cfg!(feature = "llvm") {
             get_builtin_codegen_backend("llvm")().print_version();
         }
     }
@@ -1096,7 +1096,7 @@ pub fn handle_options(args: &[String]) -> Option<getopts::Matches> {
     }
 
     if cg_flags.iter().any(|x| *x == "passes=list") {
-        if cfg!(llvm) {
+        if cfg!(feature = "llvm") {
             get_builtin_codegen_backend("llvm")().print_passes();
         }
         return None;