diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-11-27 20:48:53 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-11-27 20:48:53 +0100 |
| commit | 477aa678021086d4fd07d8c738be51683c314231 (patch) | |
| tree | 971370a0682f0e551bb1d38ec276ba7237ed89d1 /compiler/rustc_codegen_cranelift/src/bin | |
| parent | 774bce7f5e9d0cc99a30cf37be5d175a3b530beb (diff) | |
| parent | 5988bbd24aa87732bfa1d111ba00bcdaa22c481a (diff) | |
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/bin')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/bin/cg_clif.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/bin/cg_clif.rs b/compiler/rustc_codegen_cranelift/src/bin/cg_clif.rs index cd01acc9a83..f4d23ebcf4e 100644 --- a/compiler/rustc_codegen_cranelift/src/bin/cg_clif.rs +++ b/compiler/rustc_codegen_cranelift/src/bin/cg_clif.rs @@ -26,15 +26,15 @@ impl rustc_driver::Callbacks for CraneliftPassesCallbacks { config.opts.cg.panic = Some(PanicStrategy::Abort); config.opts.debugging_opts.panic_abort_tests = true; - config.opts.maybe_sysroot = Some( - config.opts.maybe_sysroot.clone().unwrap_or_else( - || std::env::current_exe() - .unwrap() - .parent() - .unwrap() - .join("sysroot"), - ), - ); + config.opts.maybe_sysroot = Some(config.opts.maybe_sysroot.clone().unwrap_or_else(|| { + std::env::current_exe() + .unwrap() + .parent() + .unwrap() + .parent() + .unwrap() + .to_owned() + })); } } |
