4
4
; RUN: split-file %s %t
5
5
6
6
// Build a simple dylib with debug info.
7
- ; RUN: %clang --target=arm64 -apple-macos13 -g -dynamiclib %t/foo.c \
7
+ ; RUN: %clang --target=x86_64 -apple-macos10.15 -g -dynamiclib %t/foo.c \
8
8
; RUN: -current_version 1 -compatibility_version 1 -L%t/usr/lib \
9
9
; RUN: -save-temps \
10
10
; RUN: -o %t/foo.dylib -install_name %t/foo.dylib
11
11
; RUN: dsymutil %t/foo.dylib -o %t/foo.dSYM
12
12
13
- ; RUN: not clang-installapi -x c++ --target=arm64 -apple-macos13 \
13
+ ; RUN: not clang-installapi -x c++ --target=x86_64 -apple-macos10.15 \
14
14
; RUN: -install_name %t/foo.dylib \
15
15
; RUN: -current_version 1 -compatibility_version 1 \
16
16
; RUN: -o %t/output.tbd \
17
17
; RUN: --verify-against=%t/foo.dylib --dsym=%t/foo.dSYM \
18
18
; RUN: --verify-mode=Pedantic 2>&1 | FileCheck %s
19
19
20
- ; CHECK: violations found for arm64
20
+ ; CHECK: violations found for x86_64
21
21
; CHECK: foo.c:5:0: error: no declaration found for exported symbol 'bar' in dynamic library
22
22
; CHECK: foo.c:1:0: error: no declaration found for exported symbol 'foo' in dynamic library
23
23
@@ -29,15 +29,11 @@ extern char bar;
29
29
char bar = 'a';
30
30
31
31
;--- usr/lib/libSystem.tbd
32
- {
33
- "main_library": {
34
- "install_names": [
35
- {"name": "/usr/lib/libSystem.B.dylib"}
36
- ],
37
- "target_info": [
38
- {"target": "arm64-macos"}
39
- ]
40
- },
41
- "tapi_tbd_version": 5
42
- }
43
-
32
+ --- !tapi-tbd
33
+ tbd-version: 4
34
+ targets: [ x86_64-macos ]
35
+ install-name: '/usr/lib/libSystem.B.dylib'
36
+ exports:
37
+ - targets: [ x86_64-macos ]
38
+ symbols: [ dyld_stub_binder ]
39
+ ...
0 commit comments