]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: allow buildmode=c-shared for android/arm64.
authorRahul Chaudhry <rahulchaudhry@chromium.org>
Wed, 2 Dec 2015 21:27:44 +0000 (13:27 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2015 22:00:15 +0000 (22:00 +0000)
Also, enable test misc/cgo/testcshared for android/arm64.
c/17245 and c/17246 provide the missing pieces for making
this test work.

"androidtest.bash" now passes on a Nexus 9 (volantis)
device running Android build "LMY48T".

Change-Id: Icb9fd2d17d97e0f04cb18d0cd91640c80fbd3fb4
Reviewed-on: https://go-review.googlesource.com/17333
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/test.go
src/cmd/go/build.go

index 2e15247d6e4fd9b74407602bb03fc656d0976b30..da973a7a063c9120f4c73c7cf2cc1e74f5f58c91 100644 (file)
@@ -375,8 +375,8 @@ func (t *tester) registerTests() {
                        break
                }
 
-               // Darwin ARM64 fails with internal linking.
-               if t.goos == "darwin" && t.goarch == "arm64" {
+               // Darwin/Android ARM64 fails with internal linking.
+               if (t.goos == "darwin" || t.goos == "android") && t.goarch == "arm64" {
                        break
                }
 
@@ -618,7 +618,7 @@ func (t *tester) supportedBuildmode(mode string) bool {
                switch pair {
                case "linux-386", "linux-amd64", "linux-arm", "linux-arm64",
                        "darwin-amd64",
-                       "android-arm", "android-386":
+                       "android-arm", "android-arm64", "android-386":
                        return true
                }
                return false
index 57ca28dd08c5c0512d3b2ff99aac18b5e82fbcec..c11c062a5065e20045efb7f0344da08eae98d862 100644 (file)
@@ -351,7 +351,7 @@ func buildModeInit() {
                } else {
                        switch platform {
                        case "linux/amd64", "linux/arm", "linux/arm64", "linux/386",
-                               "android/amd64", "android/arm", "android/386":
+                               "android/amd64", "android/arm", "android/arm64", "android/386":
                                codegenArg = "-shared"
                        case "darwin/amd64":
                        default: