|
1 | 1 | // RUN: %empty-directory(%t) |
2 | 2 | // RUN: mkdir -p %t/resources/linux/armv7 %t/sdk/usr/include %t/sdk/usr/lib/swift/linux/armv7 |
3 | | -// RUN: touch %t/sdk/usr/include/{inttypes,stdint,unistd}.h |
4 | | - |
5 | | -// RUN: touch %t/resources/linux/armv7/{SwiftGlibc.h,glibc.modulemap} |
6 | | -// RUN: touch %t/sdk/usr/lib/swift/linux/armv7/{SwiftGlibc.h,glibc.modulemap} |
| 3 | +// RUN: touch %t/sdk/usr/include/inttypes.h |
| 4 | +// RUN: touch %t/sdk/usr/include/stdint.h |
| 5 | +// RUN: touch %t/sdk/usr/include/unistd.h |
| 6 | + |
| 7 | +// RUN: touch %t/resources/linux/armv7/SwiftGlibc.h |
| 8 | +// RUN: touch %t/resources/linux/armv7/glibc.modulemap |
| 9 | +// RUN: touch %t/sdk/usr/lib/swift/linux/armv7/SwiftGlibc.h |
| 10 | +// RUN: touch %t/sdk/usr/lib/swift/linux/armv7/glibc.modulemap |
7 | 11 | // RUN: %swift %s -typecheck -parse-stdlib -dump-clang-diagnostics -target armv7-unknown-linux-gnueabihf -sdk %t/sdk -resource-dir %t/resources 2>&1 | %FileCheck -check-prefix=CHECK-LINUX %s |
8 | 12 |
|
9 | | -// RUN: cp %S/../../stdlib/public/Cxx/{cxxshim/libcxxshim.modulemap,libstdcxx/libstdcxx.h,libstdcxx/libstdcxx.modulemap} %t/resources/linux |
| 13 | +// RUN: cp %S/../../stdlib/public/Cxx/cxxshim/libcxxshim.modulemap %t/resources/linux |
| 14 | +// RUN: cp %S/../../stdlib/public/Cxx/libstdcxx/libstdcxx.h %t/resources/linux |
| 15 | +// RUN: cp %S/../../stdlib/public/Cxx/libstdcxx/libstdcxx.modulemap %t/resources/linux |
10 | 16 | // RUN: %target-swift-frontend %s -typecheck -parse-stdlib -dump-clang-diagnostics -resource-dir %t/resources -cxx-interoperability-mode=default 2>&1 | %FileCheck -check-prefix=CHECK-CXX -check-prefix=CHECK-%target-os-CXX %s |
11 | 17 |
|
12 | 18 | // RUN: mkdir -p %t/resources/android/aarch64 %t/sdk/usr/lib/swift/android/aarch64 |
13 | | -// RUN: cp %S/../../stdlib/public/Platform/{SwiftAndroidNDK.h,SwiftBionic.h,android.modulemap} %t/resources/android/aarch64 |
14 | | -// RUN: cp %S/../../stdlib/public/Platform/{SwiftAndroidNDK.h,SwiftBionic.h,android.modulemap} %t/sdk/usr/lib/swift/android/aarch64 |
| 19 | +// RUN: cp %S/../../stdlib/public/Platform/SwiftAndroidNDK.h %t/resources/android/aarch64 |
| 20 | +// RUN: cp %S/../../stdlib/public/Platform/SwiftBionic.h %t/resources/android/aarch64 |
| 21 | +// RUN: cp %S/../../stdlib/public/Platform/android.modulemap %t/resources/android/aarch64 |
| 22 | +// RUN: cp %S/../../stdlib/public/Platform/SwiftAndroidNDK.h %t/sdk/usr/lib/swift/android/aarch64 |
| 23 | +// RUN: cp %S/../../stdlib/public/Platform/SwiftBionic.h %t/sdk/usr/lib/swift/android/aarch64 |
| 24 | +// RUN: cp %S/../../stdlib/public/Platform/android.modulemap %t/sdk/usr/lib/swift/android/aarch64 |
15 | 25 | // RUN: %swift %s -typecheck -parse-stdlib -dump-clang-diagnostics -target aarch64-unknown-linux-android -sdk %t/sdk -resource-dir %t/resources 2>&1 | %FileCheck -check-prefix=CHECK-ANDROID %s |
16 | 26 |
|
17 | 27 | // RUN: cp %S/../../stdlib/public/Cxx/cxxshim/libcxxshim.modulemap %t/resources/android |
|
0 commit comments