| 1 |
// Regression test. Previously Clang just returned the library name instead |
| 2 |
// of the full path. |
| 3 |
|
| 4 |
// RUN: %clang -print-file-name=libclang_rt.osx.a --target=x86_64-apple-darwin20.3.0 \ |
| 5 |
// RUN: -resource-dir=%S/Inputs/resource_dir \ |
| 6 |
// RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR %s |
| 7 |
|
| 8 |
// RUN: %clang -print-file-name=libclang_rt.osx.a --target=x86_64-apple-macosx11.0.0 \ |
| 9 |
// RUN: -resource-dir=%S/Inputs/resource_dir \ |
| 10 |
// RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR %s |
| 11 |
|
| 12 |
// PRINT-RUNTIME-DIR: lib{{/|\\}}darwin{{/|\\}}libclang_rt.osx.a |
| 13 |
|
| 14 |
// RUN: %clang -print-file-name=libclang_rt.ios.a --target=arm64-apple-ios14.0.0 \ |
| 15 |
// RUN: -resource-dir=%S/Inputs/resource_dir \ |
| 16 |
// RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR-IOS %s |
| 17 |
// PRINT-RUNTIME-DIR-IOS: lib{{/|\\}}darwin{{/|\\}}libclang_rt.ios.a |
| 18 |
|
| 19 |
// RUN: %clang -print-file-name=libclang_rt.tvos.a --target=arm64-apple-tvos14.0.0 \ |
| 20 |
// RUN: -resource-dir=%S/Inputs/resource_dir \ |
| 21 |
// RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR-TVOS %s |
| 22 |
// PRINT-RUNTIME-DIR-TVOS: lib{{/|\\}}darwin{{/|\\}}libclang_rt.tvos.a |
| 23 |
|
| 24 |
// RUN: %clang -print-file-name=libclang_rt.watchos.a --target=arm64-apple-watchos5.0.0 \ |
| 25 |
// RUN: -resource-dir=%S/Inputs/resource_dir \ |
| 26 |
// RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR-WATCHOS %s |
| 27 |
// PRINT-RUNTIME-DIR-WATCHOS: lib{{/|\\}}darwin{{/|\\}}libclang_rt.watchos.a |