Rollup merge of #143019 - danielframpton:codegen-backend-parse, r=bjorn3
Ensure -V --verbose processes both codegen_backend and codegen-backend
This commit is contained in:
@@ -1112,7 +1112,9 @@ fn get_backend_from_raw_matches(
|
|||||||
matches: &Matches,
|
matches: &Matches,
|
||||||
) -> Box<dyn CodegenBackend> {
|
) -> Box<dyn CodegenBackend> {
|
||||||
let debug_flags = matches.opt_strs("Z");
|
let debug_flags = matches.opt_strs("Z");
|
||||||
let backend_name = debug_flags.iter().find_map(|x| x.strip_prefix("codegen-backend="));
|
let backend_name = debug_flags
|
||||||
|
.iter()
|
||||||
|
.find_map(|x| x.strip_prefix("codegen-backend=").or(x.strip_prefix("codegen_backend=")));
|
||||||
let target = parse_target_triple(early_dcx, matches);
|
let target = parse_target_triple(early_dcx, matches);
|
||||||
let sysroot = Sysroot::new(matches.opt_str("sysroot").map(PathBuf::from));
|
let sysroot = Sysroot::new(matches.opt_str("sysroot").map(PathBuf::from));
|
||||||
let target = config::build_target_config(early_dcx, &target, sysroot.path());
|
let target = config::build_target_config(early_dcx, &target, sysroot.path());
|
||||||
|
|||||||
Reference in New Issue
Block a user