2019-12-17 08:46:41 +08:00
|
|
|
// RUN: touch %t.o
|
|
|
|
|
2021-03-03 01:50:51 +08:00
|
|
|
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld=lld.darwinold \
|
2020-11-24 23:59:57 +08:00
|
|
|
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=0 \
|
|
|
|
// RUN: -### %t.o 2>&1 \
|
2020-02-27 20:48:26 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
|
2020-11-25 11:34:10 +08:00
|
|
|
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld= \
|
2020-11-24 23:59:57 +08:00
|
|
|
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=400 \
|
|
|
|
// RUN: -### %t.o 2>&1 \
|
2020-02-27 20:48:26 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
|
2021-03-03 01:50:51 +08:00
|
|
|
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld=lld \
|
2020-11-24 23:59:57 +08:00
|
|
|
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=0 \
|
|
|
|
// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \
|
2020-02-27 20:48:26 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
|
2020-11-25 11:34:10 +08:00
|
|
|
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld= \
|
2020-11-24 23:59:57 +08:00
|
|
|
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=520 \
|
|
|
|
// RUN: -### %t.o 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
|
2020-11-25 11:34:10 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-watchos6-simulator -fuse-ld= \
|
2020-11-24 23:59:57 +08:00
|
|
|
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=520 \
|
|
|
|
// RUN: -### %t.o 2>&1 \
|
2019-12-17 08:46:41 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=SIMUL %s
|
|
|
|
|
2020-02-27 20:48:26 +08:00
|
|
|
// LINKER-OLD: "-watchos_version_min" "5.2.0"
|
|
|
|
// LINKER-NEW: "-platform_version" "watchos" "5.2.0" "6.0.0"
|
2019-12-17 08:46:41 +08:00
|
|
|
// SIMUL: "-platform_version" "watchos-simulator" "6.0.0" "6.0.0"
|