d-custom-debuginfo-path
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sat, 7 Nov 2020 21:21:03 +0000 (21:21 +0000)
committerXimin Luo <infinity0@debian.org>
Sat, 7 Nov 2020 21:21:03 +0000 (21:21 +0000)
===================================================================

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

src/bootstrap/lib.rs

index a42ee11bd6fe50df3f8dd0f8797b7ad17c39a54a..5687e104f3b060d906a8a25ee699de6b10d60f4f 100644 (file)
@@ -777,10 +777,9 @@ impl Build {
 
         match which {
             GitRepo::Rustc => {
-                let sha = self.rust_sha().unwrap_or(channel::CFG_RELEASE_NUM);
-                Some(format!("/rustc/{}", sha))
+                Some(format!("/usr/src/rustc-{}", channel::CFG_RELEASE_NUM))
             }
-            GitRepo::Llvm => Some(String::from("/rustc/llvm")),
+            GitRepo::Llvm => panic!("GitRepo::Llvm unsupported on Debian"),
         }
     }