1 // UNSUPPORTED: system-windows
2 // Windows is unsupported because we use the Unix path separator `\`.
4 // RUN: %clang %s -target x86_64-apple-driverkit19.0 -mlinker-version=0 \
5 // RUN: -isysroot %S/Inputs/DriverKit19.0.sdk -### 2>&1 \
6 // RUN: | FileCheck %s --check-prefix=LD64-OLD
7 // RUN: %clang %s -target x86_64-apple-driverkit19.0 -mlinker-version=604.99 \
8 // RUN: -isysroot %S/Inputs/DriverKit19.0.sdk -### 2>&1 \
9 // RUN: | FileCheck %s --check-prefix=LD64-OLD
10 // RUN: %clang %s -target x86_64-apple-driverkit19.0 -mlinker-version=605.0 \
11 // RUN: -isysroot %S/Inputs/DriverKit19.0.sdk -### 2>&1 \
12 // RUN: | FileCheck %s --check-prefix=LD64-OLD
13 // RUN: %clang %s -target x86_64-apple-driverkit19.0 -mlinker-version=605.1 \
14 // RUN: -isysroot %S/Inputs/DriverKit19.0.sdk -### 2>&1 \
15 // RUN: | FileCheck %s --check-prefix=LD64-NEW
17 int main() { return 0; }
18 // LD64-OLD: "-isysroot" "[[PATH:[^"]*]]Inputs/DriverKit19.0.sdk"
19 // LD64-OLD: "-L[[PATH]]Inputs/DriverKit19.0.sdk/System/DriverKit/usr/lib"
20 // LD64-OLD: "-F[[PATH]]Inputs/DriverKit19.0.sdk/System/DriverKit/System/Library/Frameworks"
21 // LD64-NEW: "-isysroot" "[[PATH:[^"]*]]Inputs/DriverKit19.0.sdk"
22 // LD64-NEW-NOT: "-L[[PATH]]Inputs/DriverKit19.0.sdk/System/DriverKit/usr/lib"
23 // LD64-NEW-NOT: "-F[[PATH]]Inputs/DriverKit19.0.sdk/System/DriverKit/System/Library/Frameworks"
26 // RUN: %clang %s -target x86_64-apple-driverkit19.0 -isysroot %S/Inputs/DriverKit19.0.sdk -E -v -x c++ 2>&1 | FileCheck %s --check-prefix=INC
28 // INC: -isysroot [[PATH:[^ ]*/Inputs/DriverKit19.0.sdk]]
29 // INC-LABEL: #include <...> search starts here:
30 // INC: [[PATH]]/System/DriverKit/usr/local/include
31 // INC: /lib{{(64)?}}/clang/{{[^/ ]+}}/include
32 // INC: [[PATH]]/System/DriverKit/usr/include
33 // INC: [[PATH]]/System/DriverKit/System/Library/Frameworks (framework directory)