Skip to content

Commit 402b063

Browse files
committed
[llvm-libtool-darwin] Fix test on all host architectures
By default, if a universal binary has a slice matching the host architecture, llvm-objdump will only print that slice, otherwise it'll print all architectures. Explicitly pass `--arch all` to force it to always print all architectures, as we want for this test.
1 parent aaa93a6 commit 402b063

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/tools/llvm-libtool-darwin/universal-output.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# RUN: llvm-libtool-darwin -static -o %t.lib %t.armv6 %t.armv6 %t.armv7
1818
# RUN: llvm-lipo -info %t.lib | \
1919
# RUN: FileCheck %s --check-prefix=ARCHS -DFILE=%t.lib
20-
# RUN: llvm-objdump --macho --all-headers %t.lib | \
20+
# RUN: llvm-objdump --macho --arch all --all-headers %t.lib | \
2121
# RUN: FileCheck %s --check-prefix=UNIVERSAL-MEMBERS -DFILE=%t.lib -DPREFIX=%basename_t.tmp --implicit-check-not=Archive
2222

2323
# UNIVERSAL-MEMBERS: Archive : [[FILE]] (architecture armv6)
@@ -57,7 +57,7 @@
5757
# RUN: yaml2obj %s -o %t.arm64 -DTYPE=0x0100000C -DSUBTYPE=0x0 -DSTRING=_arm64all
5858
# RUN: yaml2obj %s -o %t.arm64e -DTYPE=0x0100000C -DSUBTYPE=0x2 -DSTRING=_arm64e
5959
# RUN: llvm-libtool-darwin -static -o %t.lib %t.arm64 %t.arm64e
60-
# RUN: llvm-objdump --macho --all-headers %t.lib | \
60+
# RUN: llvm-objdump --macho --arch all --all-headers %t.lib | \
6161
# RUN: FileCheck %s --check-prefix=UNIVERSAL-MEMBERS-ARM64 -DFILE=%t.lib -DPREFIX=%basename_t.tmp --implicit-check-not=Archive
6262

6363
# UNIVERSAL-MEMBERS-ARM64: Archive : [[FILE]] (architecture arm64)

0 commit comments

Comments
 (0)