aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/sys
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2021-10-27 14:29:29 -0400
committerBryan C. Mills <bcmills@google.com>2021-10-27 20:03:17 +0000
commit68bd5121ee8954cfd7e3f7edb5d035f0e8b1bccc (patch)
treebe75f58e79a1c5126e119f2dc5245edcd0974ba0 /src/cmd/internal/sys
parentffd2284db06d433d60aa75ea413f407b90e583b6 (diff)
downloadgo-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.go7
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",