| // RUN: touch %t.o |
| |
| // RUN: %clang -target x86_64-apple-macos10.13 -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=0 -### %t.o 2>&1 \ |
| // RUN: | FileCheck --check-prefix=LINKER-OLD %s |
| // RUN: %clang -target x86_64-apple-macos10.13 -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=400 -### %t.o 2>&1 \ |
| // RUN: | FileCheck --check-prefix=LINKER-OLD %s |
| // RUN: env SDKROOT=%S/Inputs/MacOSX10.14.sdk %clang -target x86_64-apple-macos10.13.0.1 -mlinker-version=520 -### %t.o 2>&1 \ |
| // RUN: | FileCheck --check-prefix=LINKER-NEW %s |
| |
| // LINKER-OLD: "-macosx_version_min" "10.13.0" |
| // LINKER-NEW: "-platform_version" "macos" "10.13.0" "10.14" |
| |
| // RUN: %clang -target x86_64-apple-macos10.13 -mlinker-version=520 -### %t.o 2>&1 \ |
| // RUN: | FileCheck --check-prefix=NOSDK %s |
| // NOSDK: "-platform_version" "macos" "10.13.0" "0.0.0" |