d-bootstrap-custom-debuginfo-path
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 14 Jul 2022 11:17:39 +0000 (13:17 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Mon, 12 Jun 2023 16:36:56 +0000 (17:36 +0100)
===================================================================

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

src/bootstrap/lib.rs
src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs

index f30d94d5a4429c699c9eefac064c08c2f318806d..ed30e5288b462f4bc7579a64db7156cd08990102 100644 (file)
@@ -1023,10 +1023,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"),
         }
     }
 
index b66abc6bedf0f33437a98f6d7b2cc87ca83c57e5..f6efe1e48da5d34ae45549ccddf97f5b2ce630b3 100644 (file)
@@ -7,7 +7,7 @@
 // true automatically. If paths to std library hasn't been remapped, we use the
 // above simulate-remapped-rust-src-base option to do it temporarily
 
-// CHECK: !DIFile(filename: "{{/rustc/.*/library/std/src/panic.rs}}"
+// CHECK: !DIFile(filename: "{{/usr/src/rustc-.*/library/std/src/panic.rs}}"
 fn main() {
     std::thread::spawn(|| {
         println!("hello");