From db726a68a69a0a5a7c395cfee8f2b9f9fc58a9f8 Mon Sep 17 00:00:00 2001 From: Aetias <144526980+AetiasHax@users.noreply.github.com> Date: Thu, 16 May 2024 02:56:08 +0200 Subject: [PATCH] Strip distro root prefix (#58) --- objdiff-gui/src/jobs/objdiff.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/objdiff-gui/src/jobs/objdiff.rs b/objdiff-gui/src/jobs/objdiff.rs index 88f7af1..1cb86b2 100644 --- a/objdiff-gui/src/jobs/objdiff.rs +++ b/objdiff-gui/src/jobs/objdiff.rs @@ -116,6 +116,13 @@ fn run_make_cmd(config: &BuildConfig, cwd: &Path, arg: &Path) -> Result format!("/{}", new_cwd.to_slash_lossy().as_ref()), + Err(_) => cwd.to_string_lossy().to_string(), + }; + command .arg("--cd") .arg(cwd)