]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: set MachO platform to PLATFORM_IOS on iOS
authorElias Naur <mail@eliasnaur.com>
Sun, 10 Nov 2019 07:42:54 +0000 (08:42 +0100)
committerElias Naur <mail@eliasnaur.com>
Fri, 15 Nov 2019 21:02:07 +0000 (21:02 +0000)
commitd856e05d64591d3dec6411e3d86fe325e85eecc5
tree7bffc8c2a8651bdf67db00f2a0deef7ab17d93ba
parent4160a71d4206e11d2122d1d9520c55a5b95c2085
cmd/link/internal/ld: set MachO platform to PLATFORM_IOS on iOS

CL 205340 changed the linker to skip certain flags when linking
for iOS. However, for host linking on iOS (such as on the Corellium
darwin/arm64 builders) the MachO platform defaults to PLATFORM_MACOS,
and the flags are not skipped.

Avoids warnings such as

    ld: warning: -no_pie ignored for arm64

Updates #32963

Change-Id: Ib6b4c2375fd14cf89410bf5ff1537b692b7a1c15
Reviewed-on: https://go-review.googlesource.com/c/go/+/206337
Run-TryBot: Elias Naur <mail@eliasnaur.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/macho.go