File tree 1 file changed +2
-4
lines changed
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 {
44
44
let input = config:: Input :: File ( options. input . clone ( ) ) ;
45
45
46
46
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 ( ) ,
49
48
search_paths : options. libs . clone ( ) ,
50
49
crate_types : vec ! [ config:: CrateType :: Dylib ] ,
51
50
cg : options. codegen_options . clone ( ) ,
@@ -225,8 +224,7 @@ fn run_test(
225
224
let outputs = OutputTypes :: new ( & [ ( OutputType :: Exe , None ) ] ) ;
226
225
227
226
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,
230
228
search_paths : libs,
231
229
crate_types : vec ! [ config:: CrateType :: Executable ] ,
232
230
output_types : outputs,
You can’t perform that action at this time.
0 commit comments