d-custom-debuginfo-path
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sat, 18 Sep 2021 10:45:21 +0000 (11:45 +0100)
committerXimin Luo <infinity0@debian.org>
Sat, 18 Sep 2021 10:45:21 +0000 (11:45 +0100)
===================================================================

Gbp-Pq: Name d-custom-debuginfo-path.patch

src/bootstrap/lib.rs

index a47ddfbcc1f180c13deeb18bef9c449efd1d5dad..80ad71b0acf9aa59db59dd6f962dee2188a0966b 100644 (file)
@@ -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"),
         }
     }