diff options
| author | Joel Sing <joel@sing.id.au> | 2020-11-04 00:26:15 +1100 |
|---|---|---|
| committer | Joel Sing <joel@sing.id.au> | 2020-11-04 06:12:33 +0000 |
| commit | 8eb846fd37eb7bded8a1cf6932be2c59069863e5 (patch) | |
| tree | da9fd86af15056194c461b3aed68107a0f43397e /src/cmd/internal/sys | |
| parent | e1b305af028544e00a22c905e68049c98c10a1cc (diff) | |
| download | go-8eb846fd37eb7bded8a1cf6932be2c59069863e5.tar.xz | |
cmd/compile,cmd/dist,cmd/go: enable pie buildmode for linux/riscv64
Enable pie as a buildmode for linux/riscv64, along with associated tests.
Change-Id: I3fb0234d534dbeb96aa6cee6ae872304fbe02cf4
Reviewed-on: https://go-review.googlesource.com/c/go/+/267317
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/cmd/internal/sys')
| -rw-r--r-- | src/cmd/internal/sys/supported.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/internal/sys/supported.go b/src/cmd/internal/sys/supported.go index 69d7591440..ef7c017bd4 100644 --- a/src/cmd/internal/sys/supported.go +++ b/src/cmd/internal/sys/supported.go @@ -86,7 +86,7 @@ func BuildModeSupported(compiler, buildmode, goos, goarch string) bool { case "pie": switch platform { - case "linux/386", "linux/amd64", "linux/arm", "linux/arm64", "linux/ppc64le", "linux/s390x", + case "linux/386", "linux/amd64", "linux/arm", "linux/arm64", "linux/ppc64le", "linux/riscv64", "linux/s390x", "android/amd64", "android/arm", "android/arm64", "android/386", "freebsd/amd64", "darwin/amd64", "darwin/arm64", |
