mirror of
https://github.com/golang/go
synced 2024-11-17 11:14:46 -07:00
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 <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
164406ad93
commit
058f019e45
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build compiler_bootstrap
|
//go:build compiler_bootstrap
|
||||||
// +build compiler_bootstrap
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !compiler_bootstrap
|
//go:build !compiler_bootstrap
|
||||||
// +build !compiler_bootstrap
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !compiler_bootstrap
|
//go:build !compiler_bootstrap
|
||||||
// +build !compiler_bootstrap
|
|
||||||
|
|
||||||
package base
|
package base
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build compiler_bootstrap
|
//go:build compiler_bootstrap
|
||||||
// +build compiler_bootstrap
|
|
||||||
|
|
||||||
package base
|
package base
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || (solaris && go1.20)
|
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || (solaris && go1.20)
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris,go1.20
|
|
||||||
|
|
||||||
package base
|
package base
|
||||||
|
|
||||||
|
@ -3,13 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !(solaris && go1.20)
|
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !(solaris && go1.20)
|
||||||
// +build !darwin
|
|
||||||
// +build !dragonfly
|
|
||||||
// +build !freebsd
|
|
||||||
// +build !linux
|
|
||||||
// +build !netbsd
|
|
||||||
// +build !openbsd
|
|
||||||
// +build !solaris !go1.20
|
|
||||||
|
|
||||||
package base
|
package base
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ignore
|
//go:build ignore
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
// Note: this program must be run in this directory.
|
// Note: this program must be run in this directory.
|
||||||
// go run mknode.go
|
// go run mknode.go
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build amd64 || arm64
|
//go:build amd64 || arm64
|
||||||
// +build amd64 arm64
|
|
||||||
|
|
||||||
package ssa
|
package ssa
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
// to avoid depending on having a working compiler binary.
|
// to avoid depending on having a working compiler binary.
|
||||||
|
|
||||||
//go:build ignore
|
//go:build ignore
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package runtime
|
package runtime
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ignore
|
//go:build ignore
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
// Generate builtin.go from builtin/runtime.go.
|
// Generate builtin.go from builtin/runtime.go.
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
// access to compiled packages for import.
|
// access to compiled packages for import.
|
||||||
//
|
//
|
||||||
//go:build !arm && !arm64
|
//go:build !arm && !arm64
|
||||||
// +build !arm,!arm64
|
|
||||||
|
|
||||||
package types2_test
|
package types2_test
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || (solaris && go1.20)
|
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || (solaris && go1.20)
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris,go1.20
|
|
||||||
|
|
||||||
package bio
|
package bio
|
||||||
|
|
||||||
|
@ -3,13 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !(solaris && go1.20)
|
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !(solaris && go1.20)
|
||||||
// +build !darwin
|
|
||||||
// +build !dragonfly
|
|
||||||
// +build !freebsd
|
|
||||||
// +build !linux
|
|
||||||
// +build !netbsd
|
|
||||||
// +build !openbsd
|
|
||||||
// +build !solaris !go1.20
|
|
||||||
|
|
||||||
package bio
|
package bio
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build dragonfly || freebsd || linux || netbsd || openbsd
|
//go:build dragonfly || freebsd || linux || netbsd || openbsd
|
||||||
// +build dragonfly freebsd linux netbsd openbsd
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || (solaris && go1.20)
|
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || (solaris && go1.20)
|
||||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris,go1.20
|
|
||||||
|
|
||||||
package ld
|
package ld
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !darwin && !linux
|
//go:build !darwin && !linux
|
||||||
// +build !darwin,!linux
|
|
||||||
|
|
||||||
package ld
|
package ld
|
||||||
|
|
||||||
|
@ -3,15 +3,6 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !(solaris && go1.20) && !windows
|
//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !(solaris && go1.20) && !windows
|
||||||
// +build !aix
|
|
||||||
// +build !darwin
|
|
||||||
// +build !dragonfly
|
|
||||||
// +build !freebsd
|
|
||||||
// +build !linux
|
|
||||||
// +build !netbsd
|
|
||||||
// +build !openbsd
|
|
||||||
// +build !solaris !go1.20
|
|
||||||
// +build !windows
|
|
||||||
|
|
||||||
package ld
|
package ld
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user