Skip to content

Commit

Permalink
rustbuild: fix remap-debuginfo when building a release
Browse files Browse the repository at this point in the history
Fallback to the release number as we can't get the
git commit sha as we're not in a git repository.

Fixes #55341

Signed-off-by: Marc-Antoine Perennou <[email protected]>
  • Loading branch information
Keruspe authored and pietroalbini committed Oct 31, 2018
1 parent 277ce7b commit 8d0fcd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ impl Build {

let path = match which {
GitRepo::Rustc => {
let sha = self.rust_info.sha().expect("failed to find sha");
let sha = self.rust_sha().unwrap_or(channel::CFG_RELEASE_NUM);
format!("/rustc/{}", sha)
}
GitRepo::Llvm => format!("/rustc/llvm"),
Expand Down

0 comments on commit 8d0fcd0

Please sign in to comment.