File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ pub fn run(options: Options) -> i32 {
4444 let input = config:: Input :: File ( options. input . clone ( ) ) ;
4545
4646 let sessopts = config:: Options {
47- maybe_sysroot : options. maybe_sysroot . clone ( ) . or_else (
48- || Some ( env:: current_exe ( ) . unwrap ( ) . parent ( ) . unwrap ( ) . parent ( ) . unwrap ( ) . to_path_buf ( ) ) ) ,
47+ maybe_sysroot : options. maybe_sysroot . clone ( ) ,
4948 search_paths : options. libs . clone ( ) ,
5049 crate_types : vec ! [ config:: CrateType :: Dylib ] ,
5150 cg : options. codegen_options . clone ( ) ,
@@ -225,8 +224,7 @@ fn run_test(
225224 let outputs = OutputTypes :: new ( & [ ( OutputType :: Exe , None ) ] ) ;
226225
227226 let sessopts = config:: Options {
228- maybe_sysroot : maybe_sysroot. or_else (
229- || Some ( env:: current_exe ( ) . unwrap ( ) . parent ( ) . unwrap ( ) . parent ( ) . unwrap ( ) . to_path_buf ( ) ) ) ,
227+ maybe_sysroot,
230228 search_paths : libs,
231229 crate_types : vec ! [ config:: CrateType :: Executable ] ,
232230 output_types : outputs,
You can’t perform that action at this time.
0 commit comments