Skip to content

Commit 8df21a7

Browse files
tklausergopherbot
authored andcommitted
cmd/link/internal/ld: drop Go 1.12 compatibility on darwin
Go 1.17 is the minimum required version for bootstrap as of Go 1.20. Also, the package no longer builds with Go 1.12 used for bootstrap. Thus, drop the Go 1.12 compatibility and used linkname unconditionally. For #44505 Change-Id: Ic160aba4a33d580987b4633a3db03a025804d090 Reviewed-on: https://go-review.googlesource.com/c/go/+/430335 TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Run-TryBot: Tobias Klauser <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Tobias Klauser <[email protected]>
1 parent dad2966 commit 8df21a7

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/cmd/link/internal/ld/outbuf_darwin.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build darwin && go1.12
6-
// +build darwin,go1.12
7-
85
package ld
96

107
import (

src/cmd/link/internal/ld/outbuf_nofallocate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build (!darwin && !linux) || (darwin && !go1.12)
6-
// +build !darwin,!linux darwin,!go1.12
5+
//go:build !darwin && !linux
6+
// +build !darwin,!linux
77

88
package ld
99

src/cmd/link/internal/ld/outbuf_notdarwin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build !darwin || (darwin && !go1.12)
6-
// +build !darwin darwin,!go1.12
5+
//go:build !darwin
6+
// +build !darwin
77

88
package ld
99

0 commit comments

Comments
 (0)