diff options
| author | Bryan C. Mills <bcmills@google.com> | 2021-10-29 01:18:24 +0000 |
|---|---|---|
| committer | Bryan C. Mills <bcmills@google.com> | 2021-10-29 17:32:24 +0000 |
| commit | a88575d662a7e8e4fbb31bf139bcffc063e2a734 (patch) | |
| tree | 5c7fa89494829d58483fca59c6c4ee83e184cbb6 /src/cmd/internal/sys | |
| parent | 645d07819b2224ba4d759829443f7c6442162c69 (diff) | |
| download | go-a88575d662a7e8e4fbb31bf139bcffc063e2a734.tar.xz | |
Revert "cmd/go: remove support for -buildmode=shared"
This reverts CL 359096.
Updates #47788.
Reason for revert: -buildmode=shared may have actually been working in a few very specific cases. We should not remove -buildmode=shared until we have implemented an alternative to support those few cases.
Change-Id: Ia962b06abacc11f6f29fc29d092773be175e32f1
Reviewed-on: https://go-review.googlesource.com/c/go/+/359575
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/internal/sys')
| -rw-r--r-- | src/cmd/internal/sys/supported.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmd/internal/sys/supported.go b/src/cmd/internal/sys/supported.go index 18ca50f927..4fa5aa495e 100644 --- a/src/cmd/internal/sys/supported.go +++ b/src/cmd/internal/sys/supported.go @@ -132,6 +132,13 @@ 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", |
