2 ; RUN: split-file %s %t
4 // All passes should include Foo macro definition.
5 ; RUN: clang-installapi -target arm64-apple-macos12 \
6 ; RUN: -install_name @rpath/libfoo.dylib -current_version 1 \
7 ; RUN: -compatibility_version 1 \
8 ; RUN: -I%S/Inputs/LibFoo/usr/include -dynamiclib \
9 ; RUN: -extra-public-header %S/Inputs/LibFoo/usr/include/foo.h \
10 ; RUN: -o %t/output.tbd \
11 ; RUN: -DFoo -XApple -DDarwin=1 -XElf -DNONDarwin=1 2>&1 | FileCheck -allow-empty %s
12 ; RUN: llvm-readtapi --compare %t/output.tbd %t/expected.tbd 2>&1 | FileCheck -allow-empty %s
14 ; RUN: clang-installapi -target arm64-apple-macos12 \
15 ; RUN: -install_name @rpath/libfoo.dylib \
16 ; RUN: -current_version 1 -compatibility_version 1 \
17 ; RUN: -I%S/Inputs/LibFoo/usr/include -dynamiclib \
18 ; RUN: -extra-public-header %S/Inputs/LibFoo/usr/include/foo.h \
19 ; RUN: -o %t/output2.tbd \
20 ; RUN: -DFoo -optionlist %t/options.json 2>&1 | FileCheck -allow-empty %s
21 ; RUN: llvm-readtapi --compare %t/output.tbd %t/expected.tbd 2>&1 | FileCheck -allow-empty %s
44 "not_app_extension_safe"
50 "name": "@rpath/libfoo.dylib"
55 "min_deployment": "12",
56 "target": "arm64-macos"
65 "Apple" : ["-DDarwin=1"],
66 "Elf" : ["-DNONDarwin"]