Skip to content

Commit

Permalink
cmd/link/internal/ld: drop Go 1.12 compatibility on darwin
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
tklauser authored and gopherbot committed Sep 13, 2022
1 parent dad2966 commit 8df21a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/cmd/link/internal/ld/outbuf_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build darwin && go1.12
// +build darwin,go1.12

package ld

import (
Expand Down
4 changes: 2 additions & 2 deletions src/cmd/link/internal/ld/outbuf_nofallocate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

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

package ld

Expand Down
4 changes: 2 additions & 2 deletions src/cmd/link/internal/ld/outbuf_notdarwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !darwin || (darwin && !go1.12)
// +build !darwin darwin,!go1.12
//go:build !darwin
// +build !darwin

package ld

Expand Down

0 comments on commit 8df21a7

Please sign in to comment.