File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
compiler/rustc_driver_impl/src Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1112,7 +1112,10 @@ fn get_backend_from_raw_matches(
1112
1112
matches: & Matches ,
1113
1113
) -> Box <dyn CodegenBackend > {
1114
1114
let debug_flags = matches. opt_strs( "Z" ) ;
1115
- let backend_name = debug_flags. iter( ) . find_map( |x| x. strip_prefix( "codegen-backend=" ) ) ;
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=" ) ) )
1118
+ } ) ;
1116
1119
let target = parse_target_triple( early_dcx, matches) ;
1117
1120
let sysroot = filesearch:: materialize_sysroot( matches. opt_str( "sysroot" ) . map( PathBuf :: from) ) ;
1118
1121
let target = config:: build_target_config( early_dcx, & target, & sysroot) ;
You can’t perform that action at this time.
0 commit comments