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 @@ -623,11 +623,12 @@ impl Options {
623
623
}
624
624
625
625
let target = parse_target_triple ( early_dcx, matches) ;
626
+ let maybe_sysroot = matches. opt_str ( "sysroot" ) . map ( PathBuf :: from) ;
626
627
627
628
let libs = matches
628
629
. opt_strs ( "L" )
629
630
. iter ( )
630
- . map ( |s| SearchPath :: from_cli_opt ( None , & target, early_dcx, s) )
631
+ . map ( |s| SearchPath :: from_cli_opt ( maybe_sysroot . as_deref ( ) , & target, early_dcx, s) )
631
632
. collect ( ) ;
632
633
633
634
let show_coverage = matches. opt_present ( "show-coverage" ) ;
@@ -657,7 +658,6 @@ impl Options {
657
658
let bin_crate = crate_types. contains ( & CrateType :: Executable ) ;
658
659
let proc_macro_crate = crate_types. contains ( & CrateType :: ProcMacro ) ;
659
660
let playground_url = matches. opt_str ( "playground-url" ) ;
660
- let maybe_sysroot = matches. opt_str ( "sysroot" ) . map ( PathBuf :: from) ;
661
661
let module_sorting = if matches. opt_present ( "sort-modules-by-appearance" ) {
662
662
ModuleSorting :: DeclarationOrder
663
663
} else {
You can’t perform that action at this time.
0 commit comments