1
0
mirror of https://github.com/golang/go synced 2024-11-24 03:30:18 -07:00

cmd/dist, cmd/go: run testshared on arm64

And enable PIE in the go tool.

Change-Id: Ibb60ccfe62518cde6e33080bbc78bfcbecff6a4e
Reviewed-on: https://go-review.googlesource.com/14000
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
Michael Hudson-Doyle 2015-08-28 12:09:13 +12:00
parent 4bae454d68
commit 25a28da080
2 changed files with 2 additions and 2 deletions

View File

@ -592,7 +592,7 @@ func (t *tester) supportedBuildmode(mode string) bool {
return false
case "shared":
switch pair {
case "linux-amd64", "linux-arm", "linux-ppc64le":
case "linux-amd64", "linux-arm", "linux-arm64", "linux-ppc64le":
return true
}
return false

View File

@ -375,7 +375,7 @@ func buildModeInit() {
fatalf("-buildmode=pie not supported by gccgo")
} else {
switch platform {
case "linux/arm", "android/arm", "linux/amd64", "android/amd64", "linux/ppc64le":
case "linux/arm", "android/arm", "linux/amd64", "android/amd64", "linux/arm64", "linux/ppc64le":
codegenArg = "-shared"
default:
fatalf("-buildmode=pie not supported on %s\n", platform)