================
@@ -0,0 +1,19 @@
+// Test that -print-search-dirs includes system library paths on AIX
+
+// RUN: %clang -print-search-dirs --target=powerpc-ibm-aix7.3.0.0 \
+// RUN: --sysroot=%S/Inputs/aix_ppc_tree 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-PRINT-SEARCH-DIRS-32 %s
+
+// CHECK-PRINT-SEARCH-DIRS-32: programs: =
+// CHECK-PRINT-SEARCH-DIRS-32: libraries: =
+// CHECK-PRINT-SEARCH-DIRS-32-SAME: {{.*}}/usr/lib
+// CHECK-PRINT-SEARCH-DIRS-32-SAME: {{.*}}/lib
+
+// RUN: %clang -print-search-dirs --target=powerpc64-ibm-aix7.3.0.0 \
+// RUN: --sysroot=%S/Inputs/aix_ppc_tree 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-PRINT-SEARCH-DIRS-64 %s
+
+// CHECK-PRINT-SEARCH-DIRS-64: programs: =
+// CHECK-PRINT-SEARCH-DIRS-64: libraries: =
+// CHECK-PRINT-SEARCH-DIRS-64-SAME: {{.*}}/usr/lib
+// CHECK-PRINT-SEARCH-DIRS-64-SAME: {{.*}}/lib
----------------
daltenty wrote:
nit: you can just have one check prefix, since the two are identical:
```suggestion
// RUN: | FileCheck --check-prefix=CHECK-PRINT-SEARCH-DIRS %s
// RUN: %clang -print-search-dirs --target=powerpc64-ibm-aix7.3.0.0 \
// RUN: --sysroot=%S/Inputs/aix_ppc_tree 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-PRINT-SEARCH-DIRS%s
// CHECK-PRINT-SEARCH-DIRS: programs: =
// CHECK-PRINT-SEARCH-DIRS: libraries: =
// CHECK-PRINT-SEARCH-DIRS-SAME: {{.*}}/usr/lib
// CHECK-PRINT-SEARCH-DIRS-SAME: {{.*}}/lib
```
https://github.com/llvm/llvm-project/pull/182292
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits