From: Tobias Klauser Date: Thu, 28 Aug 2025 12:37:04 +0000 (+0200) Subject: cmd/link/internal/ld: unconditionally use posix_fallocate on FreeBSD X-Git-Tag: go1.26rc1~959 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d52a56cce1;p=gostls13.git 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 Reviewed-by: Cherry Mui Auto-Submit: Tobias Klauser Reviewed-by: Dmitri Shuralyov --- 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