Skip to content

Commit 64c1b0d

Browse files
authored
Fix -Cpasses=list and llvm version print with -vV
1 parent a6403b0 commit 64c1b0d

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_driver/src

1 file changed

+2
-2
lines changed

compiler/rustc_driver/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
808808
println!("commit-date: {}", unw(util::commit_date_str()));
809809
println!("host: {}", config::host_triple());
810810
println!("release: {}", unw(util::release_str()));
811-
if cfg!(llvm) {
811+
if cfg!(feature = "llvm") {
812812
get_builtin_codegen_backend("llvm")().print_version();
813813
}
814814
}
@@ -1096,7 +1096,7 @@ pub fn handle_options(args: &[String]) -> Option<getopts::Matches> {
10961096
}
10971097

10981098
if cg_flags.iter().any(|x| *x == "passes=list") {
1099-
if cfg!(llvm) {
1099+
if cfg!(feature = "llvm") {
11001100
get_builtin_codegen_backend("llvm")().print_passes();
11011101
}
11021102
return None;

0 commit comments

Comments
 (0)