]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: unify OS/SDK versions for macOS linking
authorDmitri Shuralyov <dmitshur@golang.org>
Wed, 14 Feb 2024 16:52:22 +0000 (11:52 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 14 Feb 2024 20:25:19 +0000 (20:25 +0000)
commitd90a57ffe8ad8f3cb0137822a768ae48cf80a09d
tree3655e196f50674029c168ceb37a3dda127ce1330
parentb19164d5b4278b1e27fd0bd43011c6d05f9b8047
cmd/link/internal/ld: unify OS/SDK versions for macOS linking

Go 1.23 will require macOS 11 Big Sur or later, even on AMD64.
The comment here suggests the main requirement for the OS and
SDK version is to be recent enough not to break Apple signing,
and recent enough not to cause other problems.

For now, this CL simplifies the code by merging the ARM64 and
AMD64 cases into one, given 1.23 will be the first Go release
with a common minimum macOS version for both architectures so
there's no need to treat them separately here.

For #64207.

Change-Id: I821fcb9a2a316de0703833c8a75abcbaa10b17a3
Cq-Include-Trybots: luci.golang.try:gotip-darwin-amd64_11,gotip-darwin-amd64_14,gotip-darwin-arm64_11,gotip-darwin-arm64_13
Reviewed-on: https://go-review.googlesource.com/c/go/+/563857
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/ld/macho.go
src/cmd/link/link_test.go