[lld-macho] Implement -arch_errors_fatal
authorKeith Smiley <keithbsmiley@gmail.com>
Thu, 4 Nov 2021 04:23:04 +0000 (21:23 -0700)
committerKeith Smiley <keithbsmiley@gmail.com>
Thu, 4 Nov 2021 05:01:53 +0000 (22:01 -0700)
commit6629ec3ecc16ec6e62944085317934ccbc8ff645
treebc73601947affb04c9a2b659003fecfc2fa2843f
parentbb83520dce13b9804b3282f29a8ff0886384a362
[lld-macho] Implement -arch_errors_fatal

By default with ld64, architecture mismatches are just warnings, then
this flag can be passed to make these fail. This matches that behavior.

Reviewed By: int3, #lld-macho

Differential Revision: https://reviews.llvm.org/D113082
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/InputFiles.cpp
lld/MachO/Options.td
lld/test/MachO/invalid/incompatible-arch.s