Skip to content

Commit c224599

Browse files
committed
Rollup merge of rust-lang#55343 - Keruspe:remap-debuginfo-release, r=alexcrichton
rustbuild: fix remap-debuginfo when building a release Fallback to the release number as we can't get the git commit sha as we're not in a git repository. Fixes rust-lang#55341
2 parents 28c890e + bbc3cd4 commit c224599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/bootstrap/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ impl Build {
765765

766766
let path = match which {
767767
GitRepo::Rustc => {
768-
let sha = self.rust_info.sha().expect("failed to find sha");
768+
let sha = self.rust_sha().unwrap_or(channel::CFG_RELEASE_NUM);
769769
format!("/rustc/{}", sha)
770770
}
771771
GitRepo::Llvm => format!("/rustc/llvm"),

0 commit comments

Comments
 (0)