3 // RUN: not %clang -target x86_64-apple-driverkit10.15 -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=520 -### %t.o 2>&1 \
5 // RUN: mkdir -p %t.sdk
6 // RUN: %clang -target x86_64-apple-driverkit19 -isysroot %t.sdk -mlinker-version=520 -### %t.o 2>&1 \
7 // RUN: | FileCheck --check-prefix=MISSING-SDK-JSON-WORKAROUND %s
9 // RUN: %clang -target arm64-apple-driverkit19 -isysroot %S/Inputs/MacOSX10.14.sdk -fuse-ld= -mlinker-version=520 -### %t.o 2>&1 \
10 // RUN: | FileCheck --check-prefix=ARM64_NEW %s
11 // RUN: %clang -target arm64-apple-driverkit19 -isysroot %S/Inputs/MacOSX10.14.sdk -fuse-ld= -mlinker-version=400 -### %t.o 2>&1 \
12 // RUN: | FileCheck --check-prefix=ARM64_OLD %s
13 // RUN: %clang -target arm64e-apple-driverkit19 -isysroot %S/Inputs/MacOSX10.14.sdk -fuse-ld= -mlinker-version=520 -### %t.o 2>&1 \
14 // RUN: | FileCheck --check-prefix=ARM64_NEW %s
16 // CHECK: "-platform_version" "driverkit" "10.15.0" "10.14"
17 // MISSING-SDK-JSON-WORKAROUND: "-platform_version" "driverkit" "19.0.0" "19.0.0"
19 // ARM64_NEW: "-platform_version" "driverkit" "20.0.0" "10.14"
20 // ARM64_OLD: "-driverkit_version_min" "20.0.0"