125ce33a6SAlex Lorenz // RUN: touch %t.o 225ce33a6SAlex Lorenz 318fa1d38SJez Ng // RUN: %clang -target x86_64-apple-macos10.13 -fuse-ld=lld \ 49a8386dbSNico Weber // RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=0 \ 59a8386dbSNico Weber // RUN: -### %t.o -B%S/Inputs/lld 2>&1 \ 69a8386dbSNico Weber // RUN: | FileCheck --check-prefix=LINKER-NEW %s 7a9eaf843SNico Weber // RUN: %clang -target x86_64-apple-macos10.13 -fuse-ld= \ 89a8386dbSNico Weber // RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=400 \ 99a8386dbSNico Weber // RUN: -### %t.o 2>&1 \ 105122e828SHans Wennborg // RUN: | FileCheck --check-prefix=LINKER-OLD %s 119a8386dbSNico Weber // RUN: env SDKROOT=%S/Inputs/MacOSX10.14.sdk %clang \ 129a8386dbSNico Weber // RUN: -target x86_64-apple-macos10.13.0.1 -mlinker-version=520 \ 139a8386dbSNico Weber // RUN: -### %t.o 2>&1 \ 145122e828SHans Wennborg // RUN: | FileCheck --check-prefix=LINKER-NEW %s 1525ce33a6SAlex Lorenz 16a9eaf843SNico Weber // RUN: %clang -target arm64-apple-macos10.13 -fuse-ld= \ 179a8386dbSNico Weber // RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=400 \ 189a8386dbSNico Weber // RUN: -### %t.o 2>&1 \ 196792a607SAlex Lorenz // RUN: | FileCheck --check-prefix=ARM64_OLD %s 2018fa1d38SJez Ng // RUN: %clang -target arm64-apple-macos10.13 -fuse-ld=lld \ 219a8386dbSNico Weber // RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=400 \ 229a8386dbSNico Weber // RUN: -### %t.o -B%S/Inputs/lld 2>&1 \ 239a8386dbSNico Weber // RUN: | FileCheck --check-prefix=ARM64_NEW %s 24a9eaf843SNico Weber // RUN: %clang -target arm64-apple-macos10.13 -fuse-ld= \ 259a8386dbSNico Weber // RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=520 \ 269a8386dbSNico Weber // RUN: -### %t.o 2>&1 \ 279a8386dbSNico Weber // RUN: | FileCheck --check-prefix=ARM64_NEW %s 28a9eaf843SNico Weber // RUN: %clang -target arm64-apple-darwin19 -fuse-ld= \ 299a8386dbSNico Weber // RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=520 \ 309a8386dbSNico Weber // RUN: -### %t.o 2>&1 \ 319a8386dbSNico Weber // RUN: | FileCheck --check-prefix=ARM64_NEW %s 32a9eaf843SNico Weber // RUN: %clang -target arm64-apple-macos11.1 -fuse-ld= \ 339a8386dbSNico Weber // RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=520 \ 349a8386dbSNico Weber // RUN: -### %t.o 2>&1 \ 359a8386dbSNico Weber // RUN: | FileCheck --check-prefix=ARM64_NEW_1 %s 366792a607SAlex Lorenz 375122e828SHans Wennborg // LINKER-OLD: "-macosx_version_min" "10.13.0" 385122e828SHans Wennborg // LINKER-NEW: "-platform_version" "macos" "10.13.0" "10.14" 3925ce33a6SAlex Lorenz 406792a607SAlex Lorenz // ARM64_NEW: "-platform_version" "macos" "11.0.0" "10.14" 416792a607SAlex Lorenz // ARM64_NEW_1: "-platform_version" "macos" "11.1.0" "10.14" 426792a607SAlex Lorenz // ARM64_OLD: "-macosx_version_min" "11.0.0" 436792a607SAlex Lorenz 449a8386dbSNico Weber // RUN: %clang -target x86_64-apple-macos10.13 -mlinker-version=520 \ 459a8386dbSNico Weber // RUN: -### %t.o 2>&1 \ 4625ce33a6SAlex Lorenz // RUN: | FileCheck --check-prefix=NOSDK %s 47*8fc5f07fSAlex Lorenz // RUN: %clang -target x86_64-apple-darwin17 -mlinker-version=520 \ 48*8fc5f07fSAlex Lorenz // RUN: -### %t.o 2>&1 \ 49*8fc5f07fSAlex Lorenz // RUN: | FileCheck --check-prefix=NOSDK %s 50*8fc5f07fSAlex Lorenz // NOSDK: "-platform_version" "macos" "10.13.0" "10.13.0" 51