]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: omit deprecated linker argument for iOS builds
authorElias Naur <elias.naur@gmail.com>
Tue, 27 Nov 2018 15:07:14 +0000 (16:07 +0100)
committerElias Naur <elias.naur@gmail.com>
Tue, 27 Nov 2018 15:21:22 +0000 (15:21 +0000)
commitcfac65bf2fc103411aab9d6913c777f5e78e065a
tree5a23b43b856666b85a9e9a90634e719a62b1b6cc
parent22dbc96d8a004bb78a0efd329d0f48b6f0a8b9e5
cmd/link/internal/ld: omit deprecated linker argument for iOS builds

After CL 151139 introduced a plugin test, the macOS linker for iOS
outputs:

ld: warning: -flat_namespace is deprecated on iOS

Omit the -flat_namespace flag on iOS; plugins are not supported on
iOS, and unlikely to ever be.

Change-Id: I2d08f8b984efcfd442d572b4a0f3a2c95c551b9f
Reviewed-on: https://go-review.googlesource.com/c/151300
Run-TryBot: Elias Naur <elias.naur@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/lib.go