Skip to content

Commit 058f019

Browse files
committed
cmd/cgo, cmd/compile, cmd/link: remove old style build tags
[Roll-forward of CL 436915 by Tobias Klauser, with builtin and gen directories dropped now that they've been handled separately.] The minimum bootstrap version for Go ≥ 1.20 is Go 1.17. That version supports the new style //go:build lines. Thus the old style //+build lines can be dropped in this part of the tree as well. Leave the //+build lines in cmd/dist which will ensure the minimum Go version during bootstrap. As suggested by Cherry during review of CL 430496 For #44505 Change-Id: Ifa686656c3e50bf7f92f70747b44d74a7d51bad8 Reviewed-on: https://go-review.googlesource.com/c/go/+/435473 Reviewed-by: Cherry Mui <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Russ Cox <[email protected]>
1 parent 164406a commit 058f019

File tree

17 files changed

+0
-37
lines changed

17 files changed

+0
-37
lines changed

src/cmd/cgo/ast_go1.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build compiler_bootstrap
6-
// +build compiler_bootstrap
76

87
package main
98

src/cmd/cgo/ast_go118.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !compiler_bootstrap
6-
// +build !compiler_bootstrap
76

87
package main
98

src/cmd/compile/internal/base/bootstrap_false.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !compiler_bootstrap
6-
// +build !compiler_bootstrap
76

87
package base
98

src/cmd/compile/internal/base/bootstrap_true.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build compiler_bootstrap
6-
// +build compiler_bootstrap
76

87
package base
98

src/cmd/compile/internal/base/mapfile_mmap.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || (solaris && go1.20)
6-
// +build darwin dragonfly freebsd linux netbsd openbsd solaris,go1.20
76

87
package base
98

src/cmd/compile/internal/base/mapfile_read.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !(solaris && go1.20)
6-
// +build !darwin
7-
// +build !dragonfly
8-
// +build !freebsd
9-
// +build !linux
10-
// +build !netbsd
11-
// +build !openbsd
12-
// +build !solaris !go1.20
136

147
package base
158

src/cmd/compile/internal/ir/mknode.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
// Note: this program must be run in this directory.
98
// go run mknode.go

src/cmd/compile/internal/ssa/flags_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build amd64 || arm64
6-
// +build amd64 arm64
76

87
package ssa
98

src/cmd/compile/internal/typecheck/_builtin/runtime.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// to avoid depending on having a working compiler binary.
88

99
//go:build ignore
10-
// +build ignore
1110

1211
package runtime
1312

src/cmd/compile/internal/typecheck/mkbuiltin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
// Generate builtin.go from builtin/runtime.go.
98

0 commit comments

Comments
 (0)