xref: /llvm-project/clang/test/Driver/darwin-ld-platform-version-ios.c (revision ace03d0df4fa861981c79a38892584bcbc4e3c15)
125ce33a6SAlex Lorenz // RUN: touch %t.o
225ce33a6SAlex Lorenz 
3a9eaf843SNico Weber // RUN: %clang -target arm64-apple-ios12.3 -fuse-ld= \
49a8386dbSNico Weber // RUN:   -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=400 \
59a8386dbSNico Weber // RUN:   -### %t.o 2>&1 \
65122e828SHans Wennborg // RUN:   | FileCheck --check-prefix=LINKER-OLD %s
7a9eaf843SNico Weber // RUN: %clang -target arm64-apple-ios12.3 -fuse-ld= \
89a8386dbSNico Weber // RUN:   -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=520 \
99a8386dbSNico Weber // RUN:   -### %t.o 2>&1 \
105122e828SHans Wennborg // RUN:   | FileCheck --check-prefix=LINKER-NEW %s
11*18fa1d38SJez Ng // RUN: %clang -target arm64-apple-ios12.3 -fuse-ld=lld \
129a8386dbSNico Weber // RUN:   -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=0 \
139a8386dbSNico Weber // RUN:   -### %t.o -B%S/Inputs/lld 2>&1 \
149a8386dbSNico Weber // RUN:   | FileCheck --check-prefix=LINKER-NEW  %s
15a9eaf843SNico Weber // RUN: %clang -target x86_64-apple-ios13-simulator -fuse-ld= \
169a8386dbSNico Weber // RUN:   -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=520 \
179a8386dbSNico Weber // RUN:   -### %t.o 2>&1 \
189a8386dbSNico Weber // RUN:   | FileCheck --check-prefix=SIMUL %s
19*18fa1d38SJez Ng // RUN: %clang -target x86_64-apple-ios13-simulator -fuse-ld=lld \
209a8386dbSNico Weber // RUN:   -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=0 \
219a8386dbSNico Weber // RUN:   -### %t.o -B%S/Inputs/lld 2>&1 \
2225ce33a6SAlex Lorenz // RUN:   | FileCheck --check-prefix=SIMUL %s
2325ce33a6SAlex Lorenz 
245122e828SHans Wennborg // LINKER-OLD: "-iphoneos_version_min" "12.3.0"
255122e828SHans Wennborg // LINKER-NEW: "-platform_version" "ios" "12.3.0" "13.0"
2625ce33a6SAlex Lorenz // SIMUL: "-platform_version" "ios-simulator" "13.0.0" "13.0"
27