|
18 | 18 | // RUN: --target=x86_64-linux-gnu 2>&1 \
|
19 | 19 | // RUN: | FileCheck libcxx.cpp
|
20 | 20 |
|
| 21 | +// for macos there is a different directory structure |
| 22 | +// where the library and libc++.modules.json file are in lib |
| 23 | +// directly but headers are in clang/ver directory which |
| 24 | +// is the resource directory |
| 25 | +// RUN: mkdir -p %t/Inputs/usr/lib/clang/20 |
| 26 | +// RUN: touch %t/Inputs/usr/lib/libc++.so |
| 27 | +// RUN: touch %t/Inputs/usr/lib/libc++.modules.json |
| 28 | +// RUN: %clang -print-library-module-manifest-path \ |
| 29 | +// RUN: -stdlib=libc++ \ |
| 30 | +// RUN: -resource-dir=%t/Inputs/usr/lib/clang/20 \ |
| 31 | +// RUN: --target=arm64-apple-darwin24.1.0 2>&1 \ |
| 32 | +// RUN: | FileCheck libcxx.cpp.macos |
| 33 | + |
| 34 | +// RUN: rm %t/Inputs/usr/lib/libc++.so |
| 35 | +// RUN: touch %t/Inputs/usr/lib/libc++.a |
| 36 | +// RUN: touch %t/Inputs/usr/lib/libc++.modules.json |
| 37 | +// RUN: %clang -print-library-module-manifest-path \ |
| 38 | +// RUN: -stdlib=libc++ \ |
| 39 | +// RUN: -resource-dir=%t/Inputs/usr/lib/clang/20 \ |
| 40 | +// RUN: --target=arm64-apple-darwin24.1.0 2>&1 \ |
| 41 | +// RUN: | FileCheck libcxx.cpp.macos |
| 42 | + |
21 | 43 | // RUN: rm %t/Inputs/usr/lib/x86_64-linux-gnu/libc++.so
|
22 | 44 | // RUN: touch %t/Inputs/usr/lib/x86_64-linux-gnu/libc++.a
|
23 | 45 | // RUN: %clang -print-library-module-manifest-path \
|
|
40 | 62 |
|
41 | 63 | // CHECK: {{.*}}/Inputs/usr/lib/x86_64-linux-gnu{{/|\\}}libc++.modules.json
|
42 | 64 |
|
| 65 | +//--- libcxx.cpp.macos |
| 66 | + |
| 67 | +// CHECK: {{.*}}libc++.modules.json |
| 68 | + |
43 | 69 | //--- libcxx-no-shared-lib.cpp
|
44 | 70 |
|
45 | 71 | // Note this might find a different path depending whether search path
|
|
0 commit comments