]> Cypherpunks repositories - gostls13.git/commit
debug/buildinfo: recognize macOS fat binary in go version
authorNikola Jokic <jokicnikola07@gmail.com>
Mon, 6 Mar 2023 08:52:12 +0000 (09:52 +0100)
committerGopher Robot <gobot@golang.org>
Wed, 8 Mar 2023 15:57:58 +0000 (15:57 +0000)
commit8b3961264120d188c3c9739370826e346d8748c2
tree54cee9f9555cbe35f45a8d827e92cf6675891742
parent99f811ecca5674a6e6f423b97ea79f0a6eedf4b6
debug/buildinfo: recognize macOS fat binary in go version

buildinfo did not check for fat magic, which caused go version to report
unrecognized file format.

This change reads the fat file and passes the first arch file to machoExe.

Fixes #58796

Change-Id: I45cd26729352e46cc7ecfb13f2e9a8d96d62e0a0
Reviewed-on: https://go-review.googlesource.com/c/go/+/473615
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/debug/buildinfo/buildinfo.go