2019-12-17 08:46:41 +08:00
|
|
|
// RUN: touch %t.o
|
|
|
|
|
2019-12-18 06:24:23 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-macos10.13 -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=0 -### %t.o 2>&1 \
|
2020-02-27 20:48:26 +08:00
|
|
|
// 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
|
2019-12-17 08:46:41 +08:00
|
|
|
// RUN: env SDKROOT=%S/Inputs/MacOSX10.14.sdk %clang -target x86_64-apple-macos10.13.0.1 -mlinker-version=520 -### %t.o 2>&1 \
|
2020-02-27 20:48:26 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
|
2019-12-17 08:46:41 +08:00
|
|
|
|
2020-02-27 20:48:26 +08:00
|
|
|
// LINKER-OLD: "-macosx_version_min" "10.13.0"
|
|
|
|
// LINKER-NEW: "-platform_version" "macos" "10.13.0" "10.14"
|
2019-12-17 08:46:41 +08:00
|
|
|
|
2019-12-18 06:24:23 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-macos10.13 -mlinker-version=520 -### %t.o 2>&1 \
|
2019-12-17 08:46:41 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=NOSDK %s
|
|
|
|
// NOSDK: "-platform_version" "macos" "10.13.0" "0.0.0"
|