We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b54351 commit 742e536Copy full SHA for 742e536
compiler/rustc_driver_impl/src/lib.rs
@@ -1113,8 +1113,7 @@ fn get_backend_from_raw_matches(
1113
) -> Box<dyn CodegenBackend> {
1114
let debug_flags = matches.opt_strs("Z");
1115
let backend_name = debug_flags.iter().find_map(|x| {
1116
- x.strip_prefix("codegen")
1117
- .and_then(|x| x.strip_prefix("-backend=").or_else(|| x.strip_prefix("_backend=")))
+ x.strip_prefix("codegen-backend=").or(x.strip_prefix("codegen_backend="))
1118
});
1119
let target = parse_target_triple(early_dcx, matches);
1120
let sysroot = filesearch::materialize_sysroot(matches.opt_str("sysroot").map(PathBuf::from));
0 commit comments