1
Fork 0

Rollup merge of #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 #55341
This commit is contained in:
kennytm 2018-10-26 18:25:10 +08:00
commit 2e1e8d2913
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C

View file

@ -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"),