diff options
| author | Bryan C. Mills <bcmills@google.com> | 2021-10-27 14:29:29 -0400 |
|---|---|---|
| committer | Bryan C. Mills <bcmills@google.com> | 2021-10-27 20:03:17 +0000 |
| commit | 68bd5121ee8954cfd7e3f7edb5d035f0e8b1bccc (patch) | |
| tree | be75f58e79a1c5126e119f2dc5245edcd0974ba0 /src/cmd/internal/sys | |
| parent | ffd2284db06d433d60aa75ea413f407b90e583b6 (diff) | |
| download | go-68bd5121ee8954cfd7e3f7edb5d035f0e8b1bccc.tar.xz | |
cmd/go: remove support for -buildmode=shared
It never worked in module mode (or with a read-only GOROOT).
A proposal to drop it was filed (and approved) in
https://golang.org/issue/47788.
Fixes #47788
Change-Id: I0c12f38eb0c5dfe9384fbdb49ed202301fa4273d
Reviewed-on: https://go-review.googlesource.com/c/go/+/359096
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/cmd/internal/sys')
| -rw-r--r-- | src/cmd/internal/sys/supported.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cmd/internal/sys/supported.go b/src/cmd/internal/sys/supported.go index e6c56fbc56..473e390587 100644 --- a/src/cmd/internal/sys/supported.go +++ b/src/cmd/internal/sys/supported.go @@ -109,13 +109,6 @@ func BuildModeSupported(compiler, buildmode, goos, goarch string) bool { } return false - case "shared": - switch platform { - case "linux/386", "linux/amd64", "linux/arm", "linux/arm64", "linux/ppc64le", "linux/s390x": - return true - } - return false - case "plugin": switch platform { case "linux/amd64", "linux/arm", "linux/arm64", "linux/386", "linux/s390x", "linux/ppc64le", |
