Debian Codegraph @

clang/test/Driver/darwin-framework-search-paths.c

raw
1 // UNSUPPORTED: system-windows
2 // Windows is unsupported because we use the Unix path separator `/` in the test.
3
4 // RUN: %clang %s -target arm64-apple-macosx15.1 -isysroot %S/Inputs/MacOSX15.1.sdk -c %s -### 2>&1 \
5 // RUN: | FileCheck -DSDKROOT=%S/Inputs/MacOSX15.1.sdk %s
6 //
7 // CHECK: "-cc1"
8 // CHECK: "-resource-dir" "[[RESOURCE_DIR:[^"]*]]"
9 // CHECK-SAME: "-internal-iframework" "[[SDKROOT]]/System/Library/Frameworks"
10 // CHECK-SAME: "-internal-iframework" "[[SDKROOT]]/System/Library/SubFrameworks"
11 // CHECK-SAME: "-internal-iframework" "[[SDKROOT]]/Library/Frameworks"
12
13 // Verify that -nostdlibinc and -nostdinc removes the default search paths.
14 //
15 // RUN: %clang %s -target arm64-apple-macosx15.1 -isysroot %S/Inputs/MacOSX15.1.sdk -nostdinc -c %s -### 2>&1 \
16 // RUN: | FileCheck --check-prefix=CHECK-NOSTD -DSDKROOT=%S/Inputs/MacOSX15.1.sdk %s
17 //
18 // RUN: %clang %s -target arm64-apple-macosx15.1 -isysroot %S/Inputs/MacOSX15.1.sdk -nostdlibinc -c %s -### 2>&1 \
19 // RUN: | FileCheck --check-prefix=CHECK-NOSTD -DSDKROOT=%S/Inputs/MacOSX15.1.sdk %s
20 //
21 // CHECK-NOSTD: "-cc1"
22 // CHECK-NOSTD: "-resource-dir" "[[RESOURCE_DIR:[^"]*]]"
23 // CHECK-NOSTD-NOT: "-internal-iframework"