musl patches [v2] (#15028)

This commit is contained in:
Meghan Denny
2024-11-06 23:55:23 -08:00
committed by GitHub
parent 66ba6ba061
commit a116b2281e
7 changed files with 69 additions and 12 deletions

View File

@@ -236,9 +236,10 @@ pub fn build(b: *Build) !void {
),
.sha = sha: {
const sha = b.option([]const u8, "sha", "Force the git sha") orelse
b.graph.env_map.get("GITHUB_SHA") orelse
b.graph.env_map.get("GIT_SHA") orelse fetch_sha: {
const sha_buildoption = b.option([]const u8, "sha", "Force the git sha");
const sha_github = b.graph.env_map.get("GITHUB_SHA");
const sha_env = b.graph.env_map.get("GIT_SHA");
const sha = sha_buildoption orelse sha_github orelse sha_env orelse fetch_sha: {
const result = std.process.Child.run(.{
.allocator = b.allocator,
.argv = &.{