From: Debian Rust Maintainers Date: Sat, 28 Aug 2021 09:48:11 +0000 (+0100) Subject: d-custom-debuginfo-path X-Git-Tag: archive/raspbian/1.49.0+dfsg1-1+rpi1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2c44e9e48f190f98fa7bcbd90c23881ae80e02e2;p=rustc.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 ff8548a0f0..890cd4e1d1 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -813,10 +813,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"), } }