Skip to content

Commit bcc5c6a

Browse files
committed
cmd/go: allow -buildmode=pie for android/amd64.
For #10743 #10807 Change-Id: I35dedb52e2b47fe7ffc655d01f22ac05fe830bde Reviewed-on: https://go-review.googlesource.com/16396 Reviewed-by: David Crawshaw <[email protected]>
1 parent 26d0b00 commit bcc5c6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/go/build.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ func buildModeInit() {
361361
ldBuildmode = "c-shared"
362362
case "default":
363363
switch platform {
364-
case "android/arm":
364+
case "android/arm", "android/amd64":
365365
codegenArg = "-shared"
366366
ldBuildmode = "pie"
367367
default:
@@ -375,7 +375,7 @@ func buildModeInit() {
375375
fatalf("-buildmode=pie not supported by gccgo")
376376
} else {
377377
switch platform {
378-
case "android/arm", "linux/amd64":
378+
case "android/arm", "linux/amd64", "android/amd64":
379379
codegenArg = "-shared"
380380
default:
381381
fatalf("-buildmode=pie not supported on %s\n", platform)

0 commit comments

Comments
 (0)