Skip to content

Commit ce3bc76

Browse files
authored
Rollup merge of rust-lang#80981 - bjorn3:bjorn3-patch-1, r=jonas-schievink
Fix -Cpasses=list and llvm version print with -vV cc rust-lang#77975 (comment)
2 parents d5e55ce + 64c1b0d commit ce3bc76

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
@@ -798,7 +798,7 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
798798
println!("commit-date: {}", unw(util::commit_date_str()));
799799
println!("host: {}", config::host_triple());
800800
println!("release: {}", unw(util::release_str()));
801-
if cfg!(llvm) {
801+
if cfg!(feature = "llvm") {
802802
get_builtin_codegen_backend("llvm")().print_version();
803803
}
804804
}
@@ -1087,7 +1087,7 @@ pub fn handle_options(args: &[String]) -> Option<getopts::Matches> {
10871087
}
10881088

10891089
if cg_flags.iter().any(|x| *x == "passes=list") {
1090-
if cfg!(llvm) {
1090+
if cfg!(feature = "llvm") {
10911091
get_builtin_codegen_backend("llvm")().print_passes();
10921092
}
10931093
return None;

0 commit comments

Comments
 (0)