forked from OSchip/llvm-project
Try to fix tests after e16c0a9a68
with CLANG_DEFAULT_LINKER=lld
Tests that pass -mlinker-version=old version and that then don't expect new flags to be passed need to explicitly request the system linker now.
This commit is contained in:
parent
60c28a5a2b
commit
a9eaf8435d
|
@ -1,14 +1,14 @@
|
|||
// RUN: touch %t.o
|
||||
|
||||
// RUN: %clang -target arm64-apple-ios12.3 \
|
||||
// RUN: %clang -target arm64-apple-ios12.3 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=0 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
|
||||
// RUN: %clang -target arm64-apple-ios12.3 \
|
||||
// RUN: %clang -target arm64-apple-ios12.3 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=400 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
|
||||
// RUN: %clang -target arm64-apple-ios12.3 \
|
||||
// RUN: %clang -target arm64-apple-ios12.3 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=520 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
|
||||
|
@ -16,7 +16,7 @@
|
|||
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=0 \
|
||||
// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
|
||||
// RUN: %clang -target x86_64-apple-ios13-simulator \
|
||||
// RUN: %clang -target x86_64-apple-ios13-simulator -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=520 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=SIMUL %s
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: touch %t.o
|
||||
|
||||
// RUN: %clang -target x86_64-apple-macos10.13 \
|
||||
// RUN: %clang -target x86_64-apple-macos10.13 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=0 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
|
||||
|
@ -8,7 +8,7 @@
|
|||
// RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=0 \
|
||||
// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
|
||||
// RUN: %clang -target x86_64-apple-macos10.13 \
|
||||
// RUN: %clang -target x86_64-apple-macos10.13 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=400 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
|
||||
|
@ -17,7 +17,7 @@
|
|||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
|
||||
|
||||
// RUN: %clang -target arm64-apple-macos10.13 \
|
||||
// RUN: %clang -target arm64-apple-macos10.13 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=400 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=ARM64_OLD %s
|
||||
|
@ -25,15 +25,15 @@
|
|||
// RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=400 \
|
||||
// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=ARM64_NEW %s
|
||||
// RUN: %clang -target arm64-apple-macos10.13 \
|
||||
// RUN: %clang -target arm64-apple-macos10.13 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=520 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=ARM64_NEW %s
|
||||
// RUN: %clang -target arm64-apple-darwin19 \
|
||||
// RUN: %clang -target arm64-apple-darwin19 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=520 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=ARM64_NEW %s
|
||||
// RUN: %clang -target arm64-apple-macos11.1 \
|
||||
// RUN: %clang -target arm64-apple-macos11.1 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=520 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=ARM64_NEW_1 %s
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// RUN: touch %t.o
|
||||
|
||||
// RUN: %clang -target arm64-apple-tvos12.3 \
|
||||
// RUN: %clang -target arm64-apple-tvos12.3 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=0 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
|
||||
// RUN: %clang -target arm64-apple-tvos12.3 \
|
||||
// RUN: %clang -target arm64-apple-tvos12.3 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=400 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
|
||||
|
@ -12,11 +12,11 @@
|
|||
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=0 \
|
||||
// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
|
||||
// RUN: %clang -target arm64-apple-tvos12.3 \
|
||||
// RUN: %clang -target arm64-apple-tvos12.3 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=520 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
|
||||
// RUN: %clang -target x86_64-apple-tvos13-simulator \
|
||||
// RUN: %clang -target x86_64-apple-tvos13-simulator -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=520 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=SIMUL %s
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// RUN: touch %t.o
|
||||
|
||||
// RUN: %clang -target arm64_32-apple-watchos5.2 \
|
||||
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=0 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
|
||||
// RUN: %clang -target arm64_32-apple-watchos5.2 \
|
||||
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=400 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
|
||||
|
@ -12,11 +12,11 @@
|
|||
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=0 \
|
||||
// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
|
||||
// RUN: %clang -target arm64_32-apple-watchos5.2 \
|
||||
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=520 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
|
||||
// RUN: %clang -target x86_64-apple-watchos6-simulator \
|
||||
// RUN: %clang -target x86_64-apple-watchos6-simulator -fuse-ld= \
|
||||
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=520 \
|
||||
// RUN: -### %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=SIMUL %s
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
// Check linker changes that came with new linkedit format.
|
||||
// RUN: touch %t.o
|
||||
// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch armv6 -miphoneos-version-min=3.0 %t.o 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch armv6 -miphoneos-version-min=3.0 -dynamiclib %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch armv6 -miphoneos-version-min=3.0 -bundle %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -fuse-ld= -mlinker-version=400 -### -arch armv6 -miphoneos-version-min=3.0 %t.o 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -fuse-ld= -mlinker-version=400 -### -arch armv6 -miphoneos-version-min=3.0 -dynamiclib %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -fuse-ld= -mlinker-version=400 -### -arch armv6 -miphoneos-version-min=3.0 -bundle %t.o 2>> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_IPHONE_3_0 %s < %t.log
|
||||
|
||||
// LINK_IPHONE_3_0: {{ld(.exe)?"}}
|
||||
|
@ -30,9 +30,9 @@
|
|||
// LINK_IPHONE_3_0: -lbundle1.o
|
||||
// LINK_IPHONE_3_0: -lSystem
|
||||
|
||||
// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch armv7 -miphoneos-version-min=3.1 %t.o 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch armv7 -miphoneos-version-min=3.1 -dynamiclib %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch armv7 -miphoneos-version-min=3.1 -bundle %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -fuse-ld= -mlinker-version=400 -### -arch armv7 -miphoneos-version-min=3.1 %t.o 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -fuse-ld= -mlinker-version=400 -### -arch armv7 -miphoneos-version-min=3.1 -dynamiclib %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -fuse-ld= -mlinker-version=400 -### -arch armv7 -miphoneos-version-min=3.1 -bundle %t.o 2>> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_IPHONE_3_1 %s < %t.log
|
||||
|
||||
// LINK_IPHONE_3_1: {{ld(.exe)?"}}
|
||||
|
@ -49,9 +49,9 @@
|
|||
// LINK_IPHONE_3_1-NOT: -lbundle1.o
|
||||
// LINK_IPHONE_3_1: -lSystem
|
||||
|
||||
// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch i386 -mios-simulator-version-min=3.0 %t.o 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch i386 -mios-simulator-version-min=3.0 -dynamiclib %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -mlinker-version=400 -### -arch i386 -mios-simulator-version-min=3.0 -bundle %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -fuse-ld= -mlinker-version=400 -### -arch i386 -mios-simulator-version-min=3.0 %t.o 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -fuse-ld= -mlinker-version=400 -### -arch i386 -mios-simulator-version-min=3.0 -dynamiclib %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -fuse-ld= -mlinker-version=400 -### -arch i386 -mios-simulator-version-min=3.0 -bundle %t.o 2>> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_IOSSIM_3_0 %s < %t.log
|
||||
|
||||
// LINK_IOSSIM_3_0: {{ld(.exe)?"}}
|
||||
|
@ -80,14 +80,14 @@
|
|||
// LINK_EXPLICIT_NO_PIE: "-no_pie"
|
||||
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: -mlinker-version=100 2> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=100 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_NEWER_DEMANGLE %s < %t.log
|
||||
//
|
||||
// LINK_NEWER_DEMANGLE: {{ld(.exe)?"}}
|
||||
// LINK_NEWER_DEMANGLE: "-demangle"
|
||||
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: -mlinker-version=100 -Wl,--no-demangle 2> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=100 -Wl,--no-demangle 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_NEWER_NODEMANGLE %s < %t.log
|
||||
//
|
||||
// LINK_NEWER_NODEMANGLE: {{ld(.exe)?"}}
|
||||
|
@ -95,7 +95,7 @@
|
|||
// LINK_NEWER_NODEMANGLE: "-lSystem"
|
||||
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: -mlinker-version=95 2> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=95 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_OLDER_NODEMANGLE %s < %t.log
|
||||
//
|
||||
// LINK_OLDER_NODEMANGLE: {{ld(.exe)?"}}
|
||||
|
@ -103,7 +103,7 @@
|
|||
// LINK_OLDER_NODEMANGLE: "-lSystem"
|
||||
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### %s \
|
||||
// RUN: -mlinker-version=117 -flto 2> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=117 -flto 2> %t.log
|
||||
// RUN: cat %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_OBJECT_LTO_PATH %s < %t.log
|
||||
//
|
||||
|
@ -132,8 +132,8 @@
|
|||
// LINK_LAZY_LIBRARY: {{ld(.exe)?"}}
|
||||
// LINK_LAZY_LIBRARY: "-lazy_library" "Library"
|
||||
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: %clang -target x86_64-apple-macosx10.7 -mlinker-version=400 -### %t.o 2>> %t.log
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -fuse-ld= -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: %clang -target x86_64-apple-macosx10.7 -fuse-ld= -mlinker-version=400 -### %t.o 2>> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_VERSION_MIN %s < %t.log
|
||||
// LINK_VERSION_MIN: {{ld(.exe)?"}}
|
||||
// LINK_VERSION_MIN: "-macosx_version_min" "10.6.0"
|
||||
|
@ -158,7 +158,7 @@
|
|||
// LINK_IOSSIM_PROFILE: libclang_rt.profile_iossim.a
|
||||
// LINK_IOSSIM_PROFILE: libclang_rt.iossim.a
|
||||
|
||||
// RUN: %clang -target arm64-apple-tvos8.3 -mlinker-version=400 -mtvos-version-min=8.3 -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log
|
||||
// RUN: %clang -target arm64-apple-tvos8.3 -fuse-ld= -mlinker-version=400 -mtvos-version-min=8.3 -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_TVOS_ARM64 %s < %t.log
|
||||
// LINK_TVOS_ARM64: {{ld(.exe)?"}}
|
||||
// LINK_TVOS_ARM64: -tvos_version_min
|
||||
|
@ -166,19 +166,19 @@
|
|||
// LINK_TVOS_ARM64-NOT: lgcc_s.1
|
||||
// LINK_TVOS_ARM64: libclang_rt.tvos.a
|
||||
|
||||
// RUN: %clang -target arm64-apple-tvos8.3 -mlinker-version=400 -mtvos-version-min=8.3 -fprofile-instr-generate -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log
|
||||
// RUN: %clang -target arm64-apple-tvos8.3 -fuse-ld= -mlinker-version=400 -mtvos-version-min=8.3 -fprofile-instr-generate -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_TVOS_PROFILE %s < %t.log
|
||||
// LINK_TVOS_PROFILE: {{ld(.exe)?"}}
|
||||
// LINK_TVOS_PROFILE: libclang_rt.profile_tvos.a
|
||||
// LINK_TVOS_PROFILE: libclang_rt.tvos.a
|
||||
|
||||
// RUN: %clang -target arm64-apple-tvos8.3 -mlinker-version=400 -mtvos-version-min=8.3 -resource-dir=%S/Inputs/resource_dir -### %t.o -lcc_kext 2> %t.log
|
||||
// RUN: %clang -target arm64-apple-tvos8.3 -fuse-ld= -mlinker-version=400 -mtvos-version-min=8.3 -resource-dir=%S/Inputs/resource_dir -### %t.o -lcc_kext 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_TVOS_KEXT %s < %t.log
|
||||
// LINK_TVOS_KEXT: {{ld(.exe)?"}}
|
||||
// LINK_TVOS_KEXT: libclang_rt.cc_kext_tvos.a
|
||||
// LINK_TVOS_KEXT: libclang_rt.tvos.a
|
||||
|
||||
// RUN: %clang -target armv7k-apple-watchos2.0 -mlinker-version=400 -mwatchos-version-min=2.0 -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log
|
||||
// RUN: %clang -target armv7k-apple-watchos2.0 -fuse-ld= -mlinker-version=400 -mwatchos-version-min=2.0 -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_WATCHOS_ARM %s < %t.log
|
||||
// LINK_WATCHOS_ARM: {{ld(.exe)?"}}
|
||||
// LINK_WATCHOS_ARM: -watchos_version_min
|
||||
|
@ -186,13 +186,13 @@
|
|||
// LINK_WATCHOS_ARM-NOT: lgcc_s.1
|
||||
// LINK_WATCHOS_ARM: libclang_rt.watchos.a
|
||||
|
||||
// RUN: %clang -target armv7k-apple-watchos2.0 -mlinker-version=400 -mwatchos-version-min=2.0 -resource-dir=%S/Inputs/resource_dir -fprofile-instr-generate -### %t.o 2> %t.log
|
||||
// RUN: %clang -target armv7k-apple-watchos2.0 -fuse-ld= -mlinker-version=400 -mwatchos-version-min=2.0 -resource-dir=%S/Inputs/resource_dir -fprofile-instr-generate -### %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_WATCHOS_PROFILE %s < %t.log
|
||||
// LINK_WATCHOS_PROFILE: {{ld(.exe)?"}}
|
||||
// LINK_WATCHOS_PROFILE: libclang_rt.profile_watchos.a
|
||||
// LINK_WATCHOS_PROFILE: libclang_rt.watchos.a
|
||||
|
||||
// RUN: %clang -target armv7k-apple-watchos2.0 -mlinker-version=400 -mwatchos-version-min=2.0 -resource-dir=%S/Inputs/resource_dir -### %t.o -lcc_kext 2> %t.log
|
||||
// RUN: %clang -target armv7k-apple-watchos2.0 -fuse-ld= -mlinker-version=400 -mwatchos-version-min=2.0 -resource-dir=%S/Inputs/resource_dir -### %t.o -lcc_kext 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_WATCHOS_KEXT %s < %t.log
|
||||
// LINK_WATCHOS_KEXT: {{ld(.exe)?"}}
|
||||
// LINK_WATCHOS_KEXT: libclang_rt.cc_kext_watchos.a
|
||||
|
@ -221,13 +221,13 @@
|
|||
// LINK_NO_IOS_ARM64_LIBGCC_S-NOT: lgcc_s.1
|
||||
|
||||
// RUN: %clang -target x86_64-apple-darwin12 -rdynamic -### %t.o \
|
||||
// RUN: -mlinker-version=100 2> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=100 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_NO_EXPORT_DYNAMIC %s < %t.log
|
||||
// LINK_NO_EXPORT_DYNAMIC: {{ld(.exe)?"}}
|
||||
// LINK_NO_EXPORT_DYNAMIC-NOT: "-export_dynamic"
|
||||
|
||||
// RUN: %clang -target x86_64-apple-darwin12 -rdynamic -### %t.o \
|
||||
// RUN: -mlinker-version=137 2> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=137 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_EXPORT_DYNAMIC %s < %t.log
|
||||
// LINK_EXPORT_DYNAMIC: {{ld(.exe)?"}}
|
||||
// LINK_EXPORT_DYNAMIC: "-export_dynamic"
|
||||
|
@ -251,30 +251,30 @@
|
|||
// IPHONEOS_DEPLOYMENT_TARGET variable is used instead of the command-line
|
||||
// deployment target options.
|
||||
// RUN: env IPHONEOS_DEPLOYMENT_TARGET=7.0 \
|
||||
// RUN: %clang -target arm64-apple-darwin -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: %clang -target arm64-apple-darwin -fuse-ld= -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_IPHONEOS_VERSION_MIN %s < %t.log
|
||||
// RUN: env IPHONEOS_DEPLOYMENT_TARGET=7.0 \
|
||||
// RUN: %clang -target i386-apple-darwin -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin -fuse-ld= -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_IOS_SIMULATOR_VERSION_MIN %s < %t.log
|
||||
// LINK_IPHONEOS_VERSION_MIN: -iphoneos_version_min
|
||||
// LINK_IOS_SIMULATOR_VERSION_MIN: -ios_simulator_version_min
|
||||
|
||||
// Ditto for tvOS....
|
||||
// RUN: env TVOS_DEPLOYMENT_TARGET=7.0 \
|
||||
// RUN: %clang -target armv7-apple-darwin -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: %clang -target armv7-apple-darwin -fuse-ld= -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_TVOS_VERSION_MIN %s < %t.log
|
||||
// RUN: env TVOS_DEPLOYMENT_TARGET=7.0 \
|
||||
// RUN: %clang -target x86_64-apple-darwin -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: %clang -target x86_64-apple-darwin -fuse-ld= -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_TVOS_SIMULATOR_VERSION_MIN %s < %t.log
|
||||
// LINK_TVOS_VERSION_MIN: -tvos_version_min
|
||||
// LINK_TVOS_SIMULATOR_VERSION_MIN: -tvos_simulator_version_min
|
||||
|
||||
// ...and for watchOS.
|
||||
// RUN: env WATCHOS_DEPLOYMENT_TARGET=2.0 \
|
||||
// RUN: %clang -target armv7k-apple-darwin -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: %clang -target armv7k-apple-darwin -fuse-ld= -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_WATCHOS_VERSION_MIN %s < %t.log
|
||||
// RUN: env WATCHOS_DEPLOYMENT_TARGET=2.0 \
|
||||
// RUN: %clang -target i386-apple-darwin -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin -fuse-ld= -mlinker-version=400 -### %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_WATCHOS_SIMULATOR_VERSION_MIN %s < %t.log
|
||||
// LINK_WATCHOS_VERSION_MIN: -watchos_version_min
|
||||
// LINK_WATCHOS_SIMULATOR_VERSION_MIN: -watchos_simulator_version_min
|
||||
|
@ -287,19 +287,19 @@
|
|||
|
||||
// Check ld64 accepts up to 5 digits with no extra characters
|
||||
// RUN: %clang -target x86_64-apple-darwin12 %s -### -o %t \
|
||||
// RUN: -mlinker-version=133.3 2> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=133.3 2> %t.log
|
||||
// RUN: %clang -target x86_64-apple-darwin12 %s -### -o %t \
|
||||
// RUN: -mlinker-version=133.3.0 2>> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=133.3.0 2>> %t.log
|
||||
// RUN: %clang -target x86_64-apple-darwin12 %s -### -o %t \
|
||||
// RUN: -mlinker-version=133.3.0.1 2>> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=133.3.0.1 2>> %t.log
|
||||
// RUN: %clang -target x86_64-apple-darwin12 %s -### -o %t \
|
||||
// RUN: -mlinker-version=133.3.0.1.2 2>> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=133.3.0.1.2 2>> %t.log
|
||||
// RUN: %clang -target x86_64-apple-darwin12 %s -### -o %t \
|
||||
// RUN: -mlinker-version=133.3.0.1.2.6 2>> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=133.3.0.1.2.6 2>> %t.log
|
||||
// RUN: %clang -target x86_64-apple-darwin12 %s -### -o %t \
|
||||
// RUN: -mlinker-version=133.3.0.1.a 2>> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=133.3.0.1.a 2>> %t.log
|
||||
// RUN: %clang -target x86_64-apple-darwin12 %s -### -o %t \
|
||||
// RUN: -mlinker-version=133.3.0.1a 2>> %t.log
|
||||
// RUN: -fuse-ld= -mlinker-version=133.3.0.1a 2>> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_VERSION_DIGITS %s < %t.log
|
||||
// LINK_VERSION_DIGITS-NOT: invalid version number in '-mlinker-version=133.3'
|
||||
// LINK_VERSION_DIGITS-NOT: invalid version number in '-mlinker-version=133.3.0'
|
||||
|
|
Loading…
Reference in New Issue