Skip to content

Commit

Permalink
initial changes to build macOS (#1379)
Browse files Browse the repository at this point in the history
Co-authored-by: George Adams <[email protected]>
  • Loading branch information
dagood and gdams authored Oct 30, 2024
1 parent beffc21 commit 5326603
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions eng/utilities.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ function Get-Stage0GoRoot() {
}
Default { throw "Unable to match Linux '$proc_arch' to an architecture supported by the Microsoft scripts to build Go." }
}
} elseif ($IsMacOS) {
switch ($proc_arch) {
'x64' {
$stage0_go_sha256 = '9c3c0124b01b5365f73a1489649f78f971ecf84844ad9ca58fde133096ddb61b'
$stage0_go_suffix = 'darwin-amd64.tar.gz'
}
'arm64' {
$stage0_go_sha256 = 'ebac39fd44fc22feed1bb519af431c84c55776e39b30f4fd62930da9c0cfd1e3'
$stage0_go_suffix = 'darwin-arm64.tar.gz'
}
Default { throw "Unable to match macOS '$proc_arch' to an architecture supported by the Microsoft scripts to build Go." }
}
} else {
throw "Current OS/Platform is not supported by the Microsoft scripts to build Go."
}
Expand Down

0 comments on commit 5326603

Please sign in to comment.