diff --git a/lld/MachO/InputFiles.cpp b/lld/MachO/InputFiles.cpp --- a/lld/MachO/InputFiles.cpp +++ b/lld/MachO/InputFiles.cpp @@ -251,7 +251,7 @@ path.copy(bAlloc)); } - error("unable to find matching architecture in " + path); + warn("unable to find matching architecture in " + path); return std::nullopt; } diff --git a/lld/test/MachO/fat-arch.s b/lld/test/MachO/fat-arch.s --- a/lld/test/MachO/fat-arch.s +++ b/lld/test/MachO/fat-arch.s @@ -9,9 +9,9 @@ # RUN: llvm-lipo %t.i386.o %t.x86_64.o -create -o %t.fat.o # RUN: %lld -o /dev/null %t.fat.o # RUN: llvm-lipo %t.i386.o -create -o %t.noarch.o -# RUN: not %lld -o /dev/null %t.noarch.o 2>&1 | \ +# RUN: not %no-fatal-warnings-lld -o /dev/null %t.noarch.o 2>&1 | \ # RUN: FileCheck %s -DFILE=%t.noarch.o -# CHECK: error: unable to find matching architecture in [[FILE]] +# CHECK: warning: unable to find matching architecture in [[FILE]] ## Validates that we read the cpu-subtype correctly from a fat exec. # RUN: %lld -o %t.x86_64.out %t.x86_64.o @@ -25,7 +25,7 @@ # CPU-SUB: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags # CPU-SUB-NEXT: 0xfeedfacf 16777223 3 0x{{.+}} {{.+}} {{.+}} {{.+}} {{.+}} - + # CPU-SUB: Fat headers # CPU-SUB: nfat_arch 2 # CPU-SUB: architecture 0