From: Debian Rust Maintainers Date: Sat, 18 Sep 2021 10:45:21 +0000 (+0100) Subject: d-custom-debuginfo-path X-Git-Tag: archive/raspbian/1.59.0+dfsg1-1_deb11u3+rpi1~2^2^2^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dc619eef2b9fc6324da756e4a06e7c07e84913e8;p=rustc-mozilla.git d-custom-debuginfo-path =================================================================== Gbp-Pq: Name d-custom-debuginfo-path.patch --- diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index a47ddfbcc..80ad71b0a 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -815,10 +815,9 @@ impl Build { match which { GitRepo::Rustc => { - let sha = self.rust_sha().unwrap_or(&self.version); - Some(format!("/rustc/{}", sha)) + Some(format!("/usr/src/rustc-{}", &self.version)) } - GitRepo::Llvm => Some(String::from("/rustc/llvm")), + GitRepo::Llvm => panic!("GitRepo::Llvm unsupported on Debian"), } }