Skip to content

Commit 30fd099

Browse files
authored
[InstallAPI] Fixup dsym test (#87299)
Update the test to run when the compiler is built to support arm64-darwin targets.
1 parent 84f24c2 commit 30fd099

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
; REQUIRES: 86_64-darwin
1+
; REQUIRES: system-darwin
2+
; REQUIRES: target-aarch64
23

34
; RUN: rm -rf %t
45
; RUN: split-file %s %t
56

67
// Build a simple dylib with debug info.
7-
; RUN: %clang --target=x86_64-apple-macos10.15 -g -dynamiclib %t/foo.c \
8+
; RUN: %clang --target=arm64-apple-macos11 -g -dynamiclib %t/foo.c \
89
; RUN: -current_version 1 -compatibility_version 1 -L%t/usr/lib \
910
; RUN: -save-temps \
1011
; RUN: -o %t/foo.dylib -install_name %t/foo.dylib
1112
; RUN: dsymutil %t/foo.dylib -o %t/foo.dSYM
1213

13-
; RUN: not clang-installapi -x c++ --target=x86_64-apple-macos10.15 \
14+
; RUN: not clang-installapi -x c++ --target=arm64-apple-macos11 \
1415
; RUN: -install_name %t/foo.dylib \
1516
; RUN: -current_version 1 -compatibility_version 1 \
1617
; RUN: -o %t/output.tbd \
1718
; RUN: --verify-against=%t/foo.dylib --dsym=%t/foo.dSYM \
1819
; RUN: --verify-mode=Pedantic 2>&1 | FileCheck %s
1920

20-
; CHECK: violations found for x86_64
21+
; CHECK: violations found for arm64
2122
; CHECK: foo.c:5:0: error: no declaration found for exported symbol 'bar' in dynamic library
2223
; CHECK: foo.c:1:0: error: no declaration found for exported symbol 'foo' in dynamic library
2324

@@ -31,9 +32,9 @@ char bar = 'a';
3132
;--- usr/lib/libSystem.tbd
3233
--- !tapi-tbd
3334
tbd-version: 4
34-
targets: [ x86_64-macos ]
35+
targets: [ arm64-macos ]
3536
install-name: '/usr/lib/libSystem.B.dylib'
3637
exports:
37-
- targets: [ x86_64-macos ]
38+
- targets: [ arm64-macos ]
3839
symbols: [ dyld_stub_binder ]
3940
...

0 commit comments

Comments
 (0)