File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -617,11 +617,12 @@ impl Options {
617
617
}
618
618
619
619
let target = parse_target_triple ( early_dcx, matches) ;
620
+ let maybe_sysroot = matches. opt_str ( "sysroot" ) . map ( PathBuf :: from) ;
620
621
621
622
let libs = matches
622
623
. opt_strs ( "L" )
623
624
. iter ( )
624
- . map ( |s| SearchPath :: from_cli_opt ( None , & target, early_dcx, s) )
625
+ . map ( |s| SearchPath :: from_cli_opt ( Some ( & maybe_sysroot ) , & target, early_dcx, s) )
625
626
. collect ( ) ;
626
627
627
628
let show_coverage = matches. opt_present ( "show-coverage" ) ;
@@ -651,7 +652,6 @@ impl Options {
651
652
let bin_crate = crate_types. contains ( & CrateType :: Executable ) ;
652
653
let proc_macro_crate = crate_types. contains ( & CrateType :: ProcMacro ) ;
653
654
let playground_url = matches. opt_str ( "playground-url" ) ;
654
- let maybe_sysroot = matches. opt_str ( "sysroot" ) . map ( PathBuf :: from) ;
655
655
let module_sorting = if matches. opt_present ( "sort-modules-by-appearance" ) {
656
656
ModuleSorting :: DeclarationOrder
657
657
} else {
You can’t perform that action at this time.
0 commit comments