mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
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 #55341 Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
This commit is contained in:
@@ -765,7 +765,7 @@ fn debuginfo_map(&self, which: GitRepo) -> Option<String> {
|
||||
|
||||
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"),
|
||||
|
||||
Reference in New Issue
Block a user