]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: consolidate macho platform setup
authorElias Naur <mail@eliasnaur.com>
Sat, 27 Apr 2019 09:28:49 +0000 (11:28 +0200)
committerElias Naur <mail@eliasnaur.com>
Sat, 27 Apr 2019 21:29:58 +0000 (21:29 +0000)
commita74e01204e08c51792a4f6a238762352e971efea
tree970a6714bf6df4bc845c0faf2292775c474745f7
parenta28a9427688846f971017924bcf6e8cb623ffba4
cmd/link/internal/ld: consolidate macho platform setup

Determine the macho platform once and use that the two places that
need it. This makes it easier to add a third platform check for a
follow-up change.

Updates #31447

Change-Id: I522a5fface647ab8e608f816c5832d531534df7a
Reviewed-on: https://go-review.googlesource.com/c/go/+/174198
Run-TryBot: Elias Naur <mail@eliasnaur.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/macho.go