From: Debian Rust Maintainers Date: Sun, 19 Sep 2021 18:48:33 +0000 (+0100) Subject: d-custom-debuginfo-path X-Git-Tag: archive/raspbian/1.59.0+dfsg1-1_deb11u3+rpi1~2^2^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e57a07a84b832c64ccc80ba120b3913a1a46ce0b;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 88fdcfa2d..7344a770c 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"), } }