[clang] [clang][Darwin] Remove legacy framework search path logic in the frontend (PR #120149)

Cyndy Ishida via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 17 07:52:39 PST 2024


================
@@ -0,0 +1,26 @@
+// UNSUPPORTED: system-windows
+//   Windows is unsupported because we use the Unix path separator `/` in the test.
+
+// Add default directories before running clang to check default
+// search paths.
+// RUN: rm -rf %t && mkdir -p %t
+// RUN: cp -R %S/Inputs/MacOSX15.1.sdk %t/
+// RUN: mkdir -p %t/MacOSX15.1.sdk/System/Library/Frameworks
+// RUN: mkdir -p %t/MacOSX15.1.sdk/System/Library/SubFrameworks
+// RUN: mkdir -p %t/MacOSX15.1.sdk/usr/include
+
+// RUN: %clang -xc %s -target arm64-apple-darwin13.0 -isysroot %t/MacOSX15.1.sdk -E -v 2>&1 | FileCheck --check-prefix=CHECK-C %s
----------------
cyndyishida wrote:

There is already https://github.com/llvm/llvm-project/blob/main/clang/test/Driver/driverkit-path.c 
Are you thinking of adding to it?

https://github.com/llvm/llvm-project/pull/120149


More information about the cfe-commits mailing list