forked from swiftlang/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdarwin-framework-search-paths.c
More file actions
23 lines (21 loc) · 1.16 KB
/
Copy pathdarwin-framework-search-paths.c
File metadata and controls
23 lines (21 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// UNSUPPORTED: system-windows
// Windows is unsupported because we use the Unix path separator `/` in the test.
// RUN: %clang %s -target arm64-apple-macosx15.1 -isysroot %S/Inputs/MacOSX15.1.sdk -c %s -### 2>&1 \
// RUN: | FileCheck -DSDKROOT=%S/Inputs/MacOSX15.1.sdk %s
//
// CHECK: "-cc1"
// CHECK: "-resource-dir" "[[RESOURCE_DIR:[^"]*]]"
// CHECK-SAME: "-internal-iframework" "[[SDKROOT]]/System/Library/Frameworks"
// CHECK-SAME: "-internal-iframework" "[[SDKROOT]]/System/Library/SubFrameworks"
// CHECK-SAME: "-internal-iframework" "[[SDKROOT]]/Library/Frameworks"
// Verify that -nostdlibinc and -nostdinc removes the default search paths.
//
// RUN: %clang %s -target arm64-apple-macosx15.1 -isysroot %S/Inputs/MacOSX15.1.sdk -nostdinc -c %s -### 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NOSTD -DSDKROOT=%S/Inputs/MacOSX15.1.sdk %s
//
// RUN: %clang %s -target arm64-apple-macosx15.1 -isysroot %S/Inputs/MacOSX15.1.sdk -nostdlibinc -c %s -### 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NOSTD -DSDKROOT=%S/Inputs/MacOSX15.1.sdk %s
//
// CHECK-NOSTD: "-cc1"
// CHECK-NOSTD: "-resource-dir" "[[RESOURCE_DIR:[^"]*]]"
// CHECK-NOSTD-NOT: "-internal-iframework"