d-custom-debuginfo-path
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Tue, 1 Dec 2020 19:57:48 +0000 (19:57 +0000)
committerXimin Luo <infinity0@debian.org>
Tue, 1 Dec 2020 19:57:48 +0000 (19:57 +0000)
===================================================================

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

src/bootstrap/lib.rs

index 852316a8d8dc4127f3e0699602d904e50c4decb9..ecb8abb45c76a81be78b015c1815f116f7f566d7 100644 (file)
@@ -797,10 +797,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"),
         }
     }