mirror of
https://github.com/golang/go.git
synced 2026-04-03 17:59:55 +09:00
cmd/link: use 13.0.0 OS version for macOS linking
Go 1.27 will require macOS 13 Ventura or later, so macOS 12 will be unsupported. For #75836. For #77944. Change-Id: I66f858438965c9836d647198d50acf4ca345e498 Reviewed-on: https://go-review.googlesource.com/c/go/+/754620 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
committed by
Gopher Robot
parent
1f9de17ca8
commit
6614616b75
@@ -446,7 +446,7 @@ var (
|
||||
// go.dev/issue/30488
|
||||
// go.dev/issue/56784
|
||||
// go.dev/issue/77917
|
||||
macOS = macVersionFlag{12, 0, 0}
|
||||
macOS = macVersionFlag{13, 0, 0}
|
||||
macSDK = macVersionFlag{26, 2, 0}
|
||||
)
|
||||
|
||||
|
||||
@@ -484,8 +484,8 @@ func TestMachOBuildVersion(t *testing.T) {
|
||||
found := false
|
||||
checkMin := func(ver uint32) {
|
||||
major, minor, patch := (ver>>16)&0xff, (ver>>8)&0xff, (ver>>0)&0xff
|
||||
if major < 12 {
|
||||
t.Errorf("LC_BUILD_VERSION version %d.%d.%d < 12.0.0", major, minor, patch)
|
||||
if major < 13 {
|
||||
t.Errorf("LC_BUILD_VERSION version %d.%d.%d < 13.0.0", major, minor, patch)
|
||||
}
|
||||
}
|
||||
for _, cmd := range exem.Loads {
|
||||
|
||||
Reference in New Issue
Block a user