71 lines · c
1// RUN: touch %t.o2 3// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld= \4// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=400 \5// RUN: -### %t.o 2>&1 \6// RUN: | FileCheck --check-prefix=LINKER-OLD %s7// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld=lld \8// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=0 \9// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \10// RUN: | FileCheck --check-prefix=LINKER-NEW %s11// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld= \12// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=520 \13// RUN: -### %t.o 2>&1 \14// RUN: | FileCheck --check-prefix=LINKER-NEW %s15// RUN: %clang -target x86_64-apple-watchos6-simulator -fuse-ld= \16// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=520 \17// RUN: -### %t.o 2>&1 \18// RUN: | FileCheck --check-prefix=SIMUL %s19 20// RUN: %clang -target arm64-apple-watchos6.3 -fuse-ld= \21// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=400 \22// RUN: -### %t.o 2>&1 \23// RUN: | FileCheck --check-prefix=ARM64-LINKER-OLD %s24 25// RUN: %clang -target arm64e-apple-watchos6.3 -fuse-ld= \26// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=400 \27// RUN: -### %t.o 2>&1 \28// RUN: | FileCheck --check-prefix=ARM64-LINKER-OLD %s29 30// RUN: %clang -target arm64-apple-watchos26.1 -fuse-ld= \31// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=400 \32// RUN: -### %t.o 2>&1 \33// RUN: | FileCheck --check-prefix=ARM64-LINKER-OLD-261 %s34 35// RUN: %clang -target arm64-apple-watchos6.3 -fuse-ld=lld \36// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=0 \37// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \38// RUN: | FileCheck --check-prefix=ARM64-LINKER-NEW %s39 40// RUN: %clang -target arm64e-apple-watchos6.3 -fuse-ld=lld \41// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=0 \42// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \43// RUN: | FileCheck --check-prefix=ARM64-LINKER-NEW %s44 45// RUN: %clang -target arm64-apple-watchos6.3 -fuse-ld= \46// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=520 \47// RUN: -### %t.o 2>&1 \48// RUN: | FileCheck --check-prefix=ARM64-LINKER-NEW %s49 50// RUN: %clang -target arm64-apple-watchos26.1 -fuse-ld= \51// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=520 \52// RUN: -### %t.o 2>&1 \53// RUN: | FileCheck --check-prefix=ARM64-LINKER-NEW-261 %s54 55// RUN: %clang -target arm64-apple-watchos6-simulator -fuse-ld= \56// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=520 \57// RUN: -### %t.o 2>&1 \58// RUN: | FileCheck --check-prefix=ARM64-SIMUL %s59 60// LINKER-OLD: "-watchos_version_min" "5.2.0"61// LINKER-NEW: "-platform_version" "watchos" "5.2.0" "6.0"62// SIMUL: "-platform_version" "watchos-simulator" "6.0.0" "6.0"63 64// ARM64-LINKER-OLD: "-watchos_version_min" "26.0.0"65// ARM64-LINKER-OLD-261: "-watchos_version_min" "26.1.0"66 67// ARM64-LINKER-NEW: "-platform_version" "watchos" "26.0.0" "6.0"68// ARM64-LINKER-NEW-261: "-platform_version" "watchos" "26.1.0" "6.0"69 70// ARM64-SIMUL: "-platform_version" "watchos-simulator" "7.0.0" "6.0"71