Skip to content

Commit 1a48f80

Browse files
committed
cmd/gomobile: use arm64 at packagesConfig
Go 1.15 no longer supports darwin/arm. arm64 is still supported by Android and iOS. Updates golang/go#39575 Change-Id: I91f09477ae68de148e4d63eef38d7d28f553d16c Reviewed-on: https://go-review.googlesource.com/c/mobile/+/241717 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
1 parent 588b2b2 commit 1a48f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/gomobile/bind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func writeFile(filename string, generate func(io.Writer) error) error {
215215
func packagesConfig(targetOS string) *packages.Config {
216216
config := &packages.Config{}
217217
// Add CGO_ENABLED=1 explicitly since Cgo is disabled when GOOS is different from host OS.
218-
config.Env = append(os.Environ(), "GOARCH=arm", "GOOS="+targetOS, "CGO_ENABLED=1")
218+
config.Env = append(os.Environ(), "GOARCH=arm64", "GOOS="+targetOS, "CGO_ENABLED=1")
219219
tags := buildTags
220220
if targetOS == "darwin" {
221221
tags = append(tags, "ios")

0 commit comments

Comments
 (0)