[PATCH] D139572: [lld-macho] Fix bug in reading of cpusubtype field

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 17 19:48:58 PST 2022


oontvoo added a comment.

In D139572#4003191 <https://reviews.llvm.org/D139572#4003191>, @thakis wrote:

> This broke tests: http://45.33.8.238/macm1/51156/step_10.txt

Thanks! Looking at the error more closely, it doesn't make a lot of sense. This bundle (`%t.fat.bundle` was created with `-arch x86_64`), and yet it ended up being an `arm64` (ie., with CPU=16777228) ...
I suspect we have a bug somewhere that causes the target to be whatever host machine's arch rather than what was passed via `-arch` 🤔


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139572/new/

https://reviews.llvm.org/D139572



More information about the llvm-commits mailing list