]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: omit bitcode-incompatible flags on iOS simulator
authorElias Naur <mail@eliasnaur.com>
Wed, 6 Nov 2019 12:41:56 +0000 (13:41 +0100)
committerElias Naur <mail@eliasnaur.com>
Wed, 6 Nov 2019 14:56:38 +0000 (14:56 +0000)
commit1bd974eeb7238f1f8c09e037a86988d1d2b1e33a
tree65b6e6ec9b8041a895f2a3fcd4ed17e6b6c04e4a
parentb82404837d3f2227115f70687d318689535b8a2d
cmd/link/internal/ld: omit bitcode-incompatible flags on iOS simulator

The -Wl,-headerpad, -Wl,-no_pie, -Wl,-pagezero_size flags are
incompatible with the bitcode-related flags used for iOS.

We already omitted the flags on darwin/arm and darwin/arm64; this change
omits the flags on all platforms != macOS so that building for the iOS
simulator works.

Updates #32963

Change-Id: Ic9af0daf01608f5ae0f70858e3045e399de7e95b
Reviewed-on: https://go-review.googlesource.com/c/go/+/205340
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/lib.go