Skip to content

Commit

Permalink
Rollup merge of #97752 - klensy:cg-typo, r=bjorn3
Browse files Browse the repository at this point in the history
typo: `-Zcodegen-backend=llvm -Cpasses=list` should work now

r? ```@bjorn3```
  • Loading branch information
matthiaskrgr authored Jun 6, 2022
2 parents df86d04 + 2d2577c commit c9c6c2e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions compiler/rustc_driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1055,13 +1055,7 @@ pub fn handle_options(args: &[String]) -> Option<getopts::Matches> {
}

if cg_flags.iter().any(|x| *x == "passes=list") {
let backend_name = debug_flags.iter().find_map(|x| {
if x.starts_with("codegen-backend=") {
Some(&x["codegen-backends=".len()..])
} else {
None
}
});
let backend_name = debug_flags.iter().find_map(|x| x.strip_prefix("codegen-backend="));
get_codegen_backend(&None, backend_name).print_passes();
return None;
}
Expand Down

0 comments on commit c9c6c2e

Please sign in to comment.