]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link/internal/ld: drop Go 1.12 compatibility on darwin
authorTobias Klauser <tklauser@distanz.ch>
Mon, 12 Sep 2022 15:18:49 +0000 (17:18 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 13 Sep 2022 15:49:37 +0000 (15:49 +0000)
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 <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>

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

index 9d8cb583e7abad4ebbd289b9e167cce271f71034..c0d994ea61df449e8842351e67946c8000ab7c5c 100644 (file)
@@ -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 (
index 3bffe4543dd9bda905292e365cfda72b7113249c..6564bd54a3d1bcf27977493fedff76c829c34d0d 100644 (file)
@@ -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
 
index 85e64421a30f48064e54b581a8181871eafb79c2..f9caa413e3c3c198a906d362e2a0e4aa7e5d8b99 100644 (file)
@@ -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