[PATCH] D141638: [lld-macho] Downgrade missing fat arch to warning
Keith Smiley via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 12 16:49:37 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd4cf89ad5a37: [lld-macho] Downgrade missing fat arch to warning (authored by keith).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141638/new/
https://reviews.llvm.org/D141638
Files:
lld/MachO/InputFiles.cpp
lld/test/MachO/fat-arch.s
Index: lld/test/MachO/fat-arch.s
===================================================================
--- lld/test/MachO/fat-arch.s
+++ 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
Index: lld/MachO/InputFiles.cpp
===================================================================
--- lld/MachO/InputFiles.cpp
+++ 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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141638.488812.patch
Type: text/x-patch
Size: 1451 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230113/95899cd4/attachment.bin>
More information about the llvm-commits
mailing list