Skip to content

Commit d52a56c

Browse files
tklausergopherbot
authored andcommitted
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 golang#69315 Change-Id: Ie0c7ca67e3c21138d690e1e11a12172d52619493 Reviewed-on: https://go-review.googlesource.com/c/go/+/699735 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Auto-Submit: Tobias Klauser <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 9d08299 commit d52a56c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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 || (freebsd && go1.21) || linux || (netbsd && go1.25)
5+
//go:build darwin || freebsd || linux || (netbsd && go1.25)
66

77
package ld
88

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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 (freebsd && go1.21) || (netbsd && go1.25)
5+
//go:build freebsd || (netbsd && go1.25)
66

77
package ld
88

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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 && !(freebsd && go1.21) && !linux && !(netbsd && go1.25)
5+
//go:build !darwin && !freebsd && !linux && !(netbsd && go1.25)
66

77
package ld
88

0 commit comments

Comments
 (0)