[lld-macho] Downgrade missing fat arch to warning
authorKeith Smiley <keithbsmiley@gmail.com>
Thu, 12 Jan 2023 22:43:12 +0000 (14:43 -0800)
committerKeith Smiley <keithbsmiley@gmail.com>
Fri, 13 Jan 2023 00:49:16 +0000 (16:49 -0800)
commitd4cf89ad5a374f9f81446f12da2386c96b80d3dc
treea8c2bc00610be0aecd5fa07937e2d4f17d4849d1
parentf001e50f955c3cdf2deb79e38a9fd19c9a781882
[lld-macho] Downgrade missing fat arch to warning

This mirrors ld64's behavior. In many cases this likely still leads to a
link failure but if you didn't actually use anything from the library
it can be ignored. If you care about these invalid cases -fatal_warnings
still upgrades it back to an error.

Example: https://github.com/keith/ld64.lld/issues/3

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