1
- ; REQUIRES: 86_64-darwin
1
+ ; REQUIRES: system-darwin
2
+ ; REQUIRES: target-aarch64
2
3
3
4
; RUN: rm -rf %t
4
5
; RUN: split-file %s %t
5
6
6
7
// 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 \
8
9
; RUN: -current_version 1 -compatibility_version 1 -L%t/usr/lib \
9
10
; RUN: -save-temps \
10
11
; RUN: -o %t/foo.dylib -install_name %t/foo.dylib
11
12
; RUN: dsymutil %t/foo.dylib -o %t/foo.dSYM
12
13
13
- ; RUN: not clang-installapi -x c++ --target=x86_64 -apple-macos10.15 \
14
+ ; RUN: not clang-installapi -x c++ --target=arm64 -apple-macos11 \
14
15
; RUN: -install_name %t/foo.dylib \
15
16
; RUN: -current_version 1 -compatibility_version 1 \
16
17
; RUN: -o %t/output.tbd \
17
18
; RUN: --verify-against=%t/foo.dylib --dsym=%t/foo.dSYM \
18
19
; RUN: --verify-mode=Pedantic 2>&1 | FileCheck %s
19
20
20
- ; CHECK: violations found for x86_64
21
+ ; CHECK: violations found for arm64
21
22
; CHECK: foo.c:5:0: error: no declaration found for exported symbol 'bar' in dynamic library
22
23
; CHECK: foo.c:1:0: error: no declaration found for exported symbol 'foo' in dynamic library
23
24
@@ -31,9 +32,9 @@ char bar = 'a';
31
32
;--- usr/lib/libSystem.tbd
32
33
--- !tapi-tbd
33
34
tbd-version: 4
34
- targets: [ x86_64 -macos ]
35
+ targets: [ arm64 -macos ]
35
36
install-name: '/usr/lib/libSystem.B.dylib'
36
37
exports:
37
- - targets: [ x86_64 -macos ]
38
+ - targets: [ arm64 -macos ]
38
39
symbols: [ dyld_stub_binder ]
39
40
...
0 commit comments