diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2025-08-28 14:37:04 +0200 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-09-05 06:41:24 -0700 |
| commit | d52a56cce1cc78eeff753d952d7abfc109f78ead (patch) | |
| tree | 4da8c043a4f3365a4f5ffaf63128a9d07443448c /src/cmd/link | |
| parent | 9d0829963ccab19093c37f21cfc35d019addc78a (diff) | |
| download | go-d52a56cce1cc78eeff753d952d7abfc109f78ead.tar.xz | |
cmd/link/internal/ld: unconditionally use posix_fallocate on FreeBSD
Now that Go 1.24 is the minimum bootstrap toolchain we can drop the
version dependent use of posix_fallocate on FreeBSD.
For #69315
Change-Id: Ie0c7ca67e3c21138d690e1e11a12172d52619493
Reviewed-on: https://go-review.googlesource.com/c/go/+/699735
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/cmd/link')
| -rw-r--r-- | src/cmd/link/internal/ld/fallocate_test.go | 2 | ||||
| -rw-r--r-- | src/cmd/link/internal/ld/outbuf_bsd.go | 2 | ||||
| -rw-r--r-- | src/cmd/link/internal/ld/outbuf_nofallocate.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/link/internal/ld/fallocate_test.go b/src/cmd/link/internal/ld/fallocate_test.go index 163ffc26e8..3c6b7ef752 100644 --- a/src/cmd/link/internal/ld/fallocate_test.go +++ b/src/cmd/link/internal/ld/fallocate_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build darwin || (freebsd && go1.21) || linux || (netbsd && go1.25) +//go:build darwin || freebsd || linux || (netbsd && go1.25) package ld diff --git a/src/cmd/link/internal/ld/outbuf_bsd.go b/src/cmd/link/internal/ld/outbuf_bsd.go index 5dce83fefd..a1d61aa045 100644 --- a/src/cmd/link/internal/ld/outbuf_bsd.go +++ b/src/cmd/link/internal/ld/outbuf_bsd.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build (freebsd && go1.21) || (netbsd && go1.25) +//go:build freebsd || (netbsd && go1.25) package ld diff --git a/src/cmd/link/internal/ld/outbuf_nofallocate.go b/src/cmd/link/internal/ld/outbuf_nofallocate.go index 9169379e23..0207b3988a 100644 --- a/src/cmd/link/internal/ld/outbuf_nofallocate.go +++ b/src/cmd/link/internal/ld/outbuf_nofallocate.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !darwin && !(freebsd && go1.21) && !linux && !(netbsd && go1.25) +//go:build !darwin && !freebsd && !linux && !(netbsd && go1.25) package ld |
