Reland 3nd attempt: [lld-macho] Fix bug in reading cpuSubType field.
authorVy Nguyen <vyng@google.com>
Sun, 18 Dec 2022 03:53:44 +0000 (22:53 -0500)
committerVy Nguyen <vyng@google.com>
Sun, 18 Dec 2022 04:35:50 +0000 (23:35 -0500)
commit7d4f70f8e598a41a4b673294de84ef3ee1cb333e
tree0f2e1ccddfb929dd58486411d23b6a5218b9ff60
parent8bb8421b0d5e2c032131b077c700b15dd1b3d739
Reland 3nd attempt:  [lld-macho] Fix bug in reading cpuSubType field.

This reverts commit 09c5aab7f88178c1af92de0b00417416da9db6c1.

New changes:
Temporarily skip checking the output bundle's cpu/cpu-subtype
Suspected there's a bug in selecting targets which caused the produced bundle
to be arm64 bundle (even though it was specifically linked with -arch x86_64).

The current test that link succeeded should be sufficient, because
it would have failed with "unable to find matching tagets" prior to this patch.

Differential Revision: https://reviews.llvm.org/D139572
lld/MachO/InputFiles.cpp
lld/test/MachO/fat-arch.s