Daniel Dunbar | ce341cb | 2009-03-26 16:29:05 +0000 | [diff] [blame] | 1 | // Check that ld gets arch_multiple. |
| 2 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 3 | // RUN: %clang -target i386-apple-darwin9 -arch i386 -arch x86_64 %s -### -o foo 2> %t.log |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 4 | // RUN: grep '".*ld.*" .*"-arch_multiple" "-final_output" "foo"' %t.log |
Daniel Dunbar | ce341cb | 2009-03-26 16:29:05 +0000 | [diff] [blame] | 5 | |
Daniel Dunbar | 0b46e1b | 2009-04-04 00:55:30 +0000 | [diff] [blame] | 6 | // Make sure we run dsymutil on source input files. |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 7 | // RUN: %clang -target i386-apple-darwin9 -### -g %s -o BAR 2> %t.log |
Daniel Dunbar | 03e9230 | 2011-05-09 17:23:16 +0000 | [diff] [blame] | 8 | // RUN: grep '".*dsymutil" "-o" "BAR.dSYM" "BAR"' %t.log |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 9 | // RUN: %clang -target i386-apple-darwin9 -### -g -filelist FOO %s -o BAR 2> %t.log |
Daniel Dunbar | 03e9230 | 2011-05-09 17:23:16 +0000 | [diff] [blame] | 10 | // RUN: grep '".*dsymutil" "-o" "BAR.dSYM" "BAR"' %t.log |
Daniel Dunbar | 0b46e1b | 2009-04-04 00:55:30 +0000 | [diff] [blame] | 11 | |
Daniel Dunbar | cacb0f0 | 2010-01-27 00:56:56 +0000 | [diff] [blame] | 12 | // Check linker changes that came with new linkedit format. |
| 13 | // RUN: touch %t.o |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 14 | // RUN: %clang -target i386-apple-darwin9 -### -arch armv6 -miphoneos-version-min=3.0 %t.o 2> %t.log |
| 15 | // RUN: %clang -target i386-apple-darwin9 -### -arch armv6 -miphoneos-version-min=3.0 -dynamiclib %t.o 2>> %t.log |
| 16 | // RUN: %clang -target i386-apple-darwin9 -### -arch armv6 -miphoneos-version-min=3.0 -bundle %t.o 2>> %t.log |
Daniel Dunbar | cacb0f0 | 2010-01-27 00:56:56 +0000 | [diff] [blame] | 17 | // RUN: FileCheck -check-prefix=LINK_IPHONE_3_0 %s < %t.log |
Daniel Dunbar | ce341cb | 2009-03-26 16:29:05 +0000 | [diff] [blame] | 18 | |
Francois Pichet | 880cf25 | 2010-09-11 20:43:12 +0000 | [diff] [blame] | 19 | // LINK_IPHONE_3_0: {{ld(.exe)?"}} |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 20 | // LINK_IPHONE_3_0: -iphoneos_version_min |
| 21 | // LINK_IPHONE_3_0: 3.0.0 |
Daniel Dunbar | cacb0f0 | 2010-01-27 00:56:56 +0000 | [diff] [blame] | 22 | // LINK_IPHONE_3_0-NOT: -lcrt1.3.1.o |
| 23 | // LINK_IPHONE_3_0: -lcrt1.o |
| 24 | // LINK_IPHONE_3_0: -lSystem |
Francois Pichet | 880cf25 | 2010-09-11 20:43:12 +0000 | [diff] [blame] | 25 | // LINK_IPHONE_3_0: {{ld(.exe)?"}} |
Daniel Dunbar | cacb0f0 | 2010-01-27 00:56:56 +0000 | [diff] [blame] | 26 | // LINK_IPHONE_3_0: -dylib |
| 27 | // LINK_IPHONE_3_0: -ldylib1.o |
| 28 | // LINK_IPHONE_3_0: -lSystem |
Francois Pichet | 880cf25 | 2010-09-11 20:43:12 +0000 | [diff] [blame] | 29 | // LINK_IPHONE_3_0: {{ld(.exe)?"}} |
Daniel Dunbar | cacb0f0 | 2010-01-27 00:56:56 +0000 | [diff] [blame] | 30 | // LINK_IPHONE_3_0: -lbundle1.o |
| 31 | // LINK_IPHONE_3_0: -lSystem |
Daniel Dunbar | ce341cb | 2009-03-26 16:29:05 +0000 | [diff] [blame] | 32 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 33 | // RUN: %clang -target i386-apple-darwin9 -### -arch armv7 -miphoneos-version-min=3.1 %t.o 2> %t.log |
| 34 | // RUN: %clang -target i386-apple-darwin9 -### -arch armv7 -miphoneos-version-min=3.1 -dynamiclib %t.o 2>> %t.log |
| 35 | // RUN: %clang -target i386-apple-darwin9 -### -arch armv7 -miphoneos-version-min=3.1 -bundle %t.o 2>> %t.log |
Daniel Dunbar | cacb0f0 | 2010-01-27 00:56:56 +0000 | [diff] [blame] | 36 | // RUN: FileCheck -check-prefix=LINK_IPHONE_3_1 %s < %t.log |
| 37 | |
Francois Pichet | 880cf25 | 2010-09-11 20:43:12 +0000 | [diff] [blame] | 38 | // LINK_IPHONE_3_1: {{ld(.exe)?"}} |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 39 | // LINK_IPHONE_3_1: -iphoneos_version_min |
| 40 | // LINK_IPHONE_3_1: 3.1.0 |
Daniel Dunbar | cacb0f0 | 2010-01-27 00:56:56 +0000 | [diff] [blame] | 41 | // LINK_IPHONE_3_1-NOT: -lcrt1.o |
| 42 | // LINK_IPHONE_3_1: -lcrt1.3.1.o |
| 43 | // LINK_IPHONE_3_1: -lSystem |
Francois Pichet | 880cf25 | 2010-09-11 20:43:12 +0000 | [diff] [blame] | 44 | // LINK_IPHONE_3_1: {{ld(.exe)?"}} |
Daniel Dunbar | cacb0f0 | 2010-01-27 00:56:56 +0000 | [diff] [blame] | 45 | // LINK_IPHONE_3_1: -dylib |
| 46 | // LINK_IPHONE_3_1-NOT: -ldylib1.o |
| 47 | // LINK_IPHONE_3_1: -lSystem |
Francois Pichet | 880cf25 | 2010-09-11 20:43:12 +0000 | [diff] [blame] | 48 | // LINK_IPHONE_3_1: {{ld(.exe)?"}} |
Daniel Dunbar | cacb0f0 | 2010-01-27 00:56:56 +0000 | [diff] [blame] | 49 | // LINK_IPHONE_3_1-NOT: -lbundle1.o |
| 50 | // LINK_IPHONE_3_1: -lSystem |
Daniel Dunbar | 47e879d | 2010-07-13 23:31:40 +0000 | [diff] [blame] | 51 | |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 52 | // RUN: %clang -target i386-apple-darwin9 -### -arch i386 -mios-simulator-version-min=3.0 %t.o 2> %t.log |
| 53 | // RUN: %clang -target i386-apple-darwin9 -### -arch i386 -mios-simulator-version-min=3.0 -dynamiclib %t.o 2>> %t.log |
| 54 | // RUN: %clang -target i386-apple-darwin9 -### -arch i386 -mios-simulator-version-min=3.0 -bundle %t.o 2>> %t.log |
| 55 | // RUN: FileCheck -check-prefix=LINK_IOSSIM_3_0 %s < %t.log |
| 56 | |
| 57 | // LINK_IOSSIM_3_0: {{ld(.exe)?"}} |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 58 | // LINK_IOSSIM_3_0: -ios_simulator_version_min |
| 59 | // LINK_IOSSIM_3_0: 3.0.0 |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 60 | // LINK_IOSSIM_3_0-NOT: -lcrt1.o |
| 61 | // LINK_IOSSIM_3_0: -lSystem |
| 62 | // LINK_IOSSIM_3_0: {{ld(.exe)?"}} |
| 63 | // LINK_IOSSIM_3_0: -dylib |
| 64 | // LINK_IOSSIM_3_0-NOT: -ldylib1.o |
| 65 | // LINK_IOSSIM_3_0: -lSystem |
| 66 | // LINK_IOSSIM_3_0: {{ld(.exe)?"}} |
| 67 | // LINK_IOSSIM_3_0-NOT: -lbundle1.o |
| 68 | // LINK_IOSSIM_3_0: -lSystem |
| 69 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 70 | // RUN: %clang -target i386-apple-darwin9 -### -fpie %t.o 2> %t.log |
Daniel Dunbar | 47e879d | 2010-07-13 23:31:40 +0000 | [diff] [blame] | 71 | // RUN: FileCheck -check-prefix=LINK_EXPLICIT_PIE %s < %t.log |
| 72 | // |
Francois Pichet | 880cf25 | 2010-09-11 20:43:12 +0000 | [diff] [blame] | 73 | // LINK_EXPLICIT_PIE: {{ld(.exe)?"}} |
Daniel Dunbar | 47e879d | 2010-07-13 23:31:40 +0000 | [diff] [blame] | 74 | // LINK_EXPLICIT_PIE: "-pie" |
| 75 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 76 | // RUN: %clang -target i386-apple-darwin9 -### -fno-pie %t.o 2> %t.log |
Daniel Dunbar | 47e879d | 2010-07-13 23:31:40 +0000 | [diff] [blame] | 77 | // RUN: FileCheck -check-prefix=LINK_EXPLICIT_NO_PIE %s < %t.log |
| 78 | // |
Francois Pichet | 880cf25 | 2010-09-11 20:43:12 +0000 | [diff] [blame] | 79 | // LINK_EXPLICIT_NO_PIE: {{ld(.exe)?"}} |
Daniel Dunbar | 47e879d | 2010-07-13 23:31:40 +0000 | [diff] [blame] | 80 | // LINK_EXPLICIT_NO_PIE: "-no_pie" |
Daniel Dunbar | b18dc5b | 2010-08-11 23:07:50 +0000 | [diff] [blame] | 81 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 82 | // RUN: %clang -target x86_64-apple-darwin10 -### %t.o \ |
Daniel Dunbar | b18dc5b | 2010-08-11 23:07:50 +0000 | [diff] [blame] | 83 | // RUN: -mlinker-version=100 2> %t.log |
| 84 | // RUN: FileCheck -check-prefix=LINK_NEWER_DEMANGLE %s < %t.log |
| 85 | // |
Francois Pichet | 880cf25 | 2010-09-11 20:43:12 +0000 | [diff] [blame] | 86 | // LINK_NEWER_DEMANGLE: {{ld(.exe)?"}} |
Daniel Dunbar | b18dc5b | 2010-08-11 23:07:50 +0000 | [diff] [blame] | 87 | // LINK_NEWER_DEMANGLE: "-demangle" |
| 88 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 89 | // RUN: %clang -target x86_64-apple-darwin10 -### %t.o \ |
Daniel Dunbar | b18dc5b | 2010-08-11 23:07:50 +0000 | [diff] [blame] | 90 | // RUN: -mlinker-version=100 -Wl,--no-demangle 2> %t.log |
| 91 | // RUN: FileCheck -check-prefix=LINK_NEWER_NODEMANGLE %s < %t.log |
| 92 | // |
Francois Pichet | 880cf25 | 2010-09-11 20:43:12 +0000 | [diff] [blame] | 93 | // LINK_NEWER_NODEMANGLE: {{ld(.exe)?"}} |
Daniel Dunbar | b18dc5b | 2010-08-11 23:07:50 +0000 | [diff] [blame] | 94 | // LINK_NEWER_NODEMANGLE-NOT: "-demangle" |
Daniel Dunbar | 673745f | 2010-08-23 20:58:55 +0000 | [diff] [blame] | 95 | // LINK_NEWER_NODEMANGLE: "-lSystem" |
Daniel Dunbar | b18dc5b | 2010-08-11 23:07:50 +0000 | [diff] [blame] | 96 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 97 | // RUN: %clang -target x86_64-apple-darwin10 -### %t.o \ |
Daniel Dunbar | b18dc5b | 2010-08-11 23:07:50 +0000 | [diff] [blame] | 98 | // RUN: -mlinker-version=95 2> %t.log |
| 99 | // RUN: FileCheck -check-prefix=LINK_OLDER_NODEMANGLE %s < %t.log |
| 100 | // |
Francois Pichet | 880cf25 | 2010-09-11 20:43:12 +0000 | [diff] [blame] | 101 | // LINK_OLDER_NODEMANGLE: {{ld(.exe)?"}} |
Daniel Dunbar | b18dc5b | 2010-08-11 23:07:50 +0000 | [diff] [blame] | 102 | // LINK_OLDER_NODEMANGLE-NOT: "-demangle" |
Daniel Dunbar | 673745f | 2010-08-23 20:58:55 +0000 | [diff] [blame] | 103 | // LINK_OLDER_NODEMANGLE: "-lSystem" |
Daniel Dunbar | 5bfa656 | 2011-06-21 20:55:11 +0000 | [diff] [blame] | 104 | |
Bill Wendling | ad90d10 | 2012-10-02 18:07:59 +0000 | [diff] [blame] | 105 | // RUN: %clang -target x86_64-apple-darwin10 -### %s \ |
Daniel Dunbar | a68e1c3 | 2011-06-21 21:18:32 +0000 | [diff] [blame] | 106 | // RUN: -mlinker-version=117 -flto 2> %t.log |
Daniel Dunbar | 5bfa656 | 2011-06-21 20:55:11 +0000 | [diff] [blame] | 107 | // RUN: cat %t.log |
| 108 | // RUN: FileCheck -check-prefix=LINK_OBJECT_LTO_PATH %s < %t.log |
| 109 | // |
| 110 | // LINK_OBJECT_LTO_PATH: {{ld(.exe)?"}} |
| 111 | // LINK_OBJECT_LTO_PATH: "-object_path_lto" |
Daniel Dunbar | 99ca47b | 2011-06-28 20:16:02 +0000 | [diff] [blame] | 112 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 113 | // RUN: %clang -target x86_64-apple-darwin10 -### %t.o \ |
Daniel Dunbar | 99ca47b | 2011-06-28 20:16:02 +0000 | [diff] [blame] | 114 | // RUN: -force_load a -force_load b 2> %t.log |
| 115 | // RUN: cat %t.log |
| 116 | // RUN: FileCheck -check-prefix=FORCE_LOAD %s < %t.log |
| 117 | // |
| 118 | // FORCE_LOAD: {{ld(.exe)?"}} |
| 119 | // FORCE_LOAD: "-force_load" "a" "-force_load" "b" |
Chad Rosier | edb9459 | 2012-01-05 01:56:11 +0000 | [diff] [blame] | 120 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 121 | // RUN: %clang -target x86_64-apple-darwin10 -### %t.o \ |
Chad Rosier | edb9459 | 2012-01-05 01:56:11 +0000 | [diff] [blame] | 122 | // RUN: -lazy_framework Framework 2> %t.log |
| 123 | // |
| 124 | // RUN: FileCheck -check-prefix=LINK_LAZY_FRAMEWORK %s < %t.log |
| 125 | // LINK_LAZY_FRAMEWORK: {{ld(.exe)?"}} |
| 126 | // LINK_LAZY_FRAMEWORK: "-lazy_framework" "Framework" |
| 127 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 128 | // RUN: %clang -target x86_64-apple-darwin10 -### %t.o \ |
Chad Rosier | edb9459 | 2012-01-05 01:56:11 +0000 | [diff] [blame] | 129 | // RUN: -lazy_library Library 2> %t.log |
| 130 | // |
| 131 | // RUN: FileCheck -check-prefix=LINK_LAZY_LIBRARY %s < %t.log |
| 132 | // LINK_LAZY_LIBRARY: {{ld(.exe)?"}} |
| 133 | // LINK_LAZY_LIBRARY: "-lazy_library" "Library" |
Bob Wilson | 1085377 | 2012-01-31 21:30:03 +0000 | [diff] [blame] | 134 | |
| 135 | // RUN: %clang -target x86_64-apple-darwin10 -### %t.o 2> %t.log |
| 136 | // RUN: %clang -target x86_64-apple-macosx10.7 -### %t.o 2>> %t.log |
| 137 | // RUN: FileCheck -check-prefix=LINK_VERSION_MIN %s < %t.log |
| 138 | // LINK_VERSION_MIN: {{ld(.exe)?"}} |
| 139 | // LINK_VERSION_MIN: "-macosx_version_min" "10.6.0" |
| 140 | // LINK_VERSION_MIN: {{ld(.exe)?"}} |
| 141 | // LINK_VERSION_MIN: "-macosx_version_min" "10.7.0" |
Ted Kremenek | ebcb57a | 2012-03-06 20:05:56 +0000 | [diff] [blame] | 142 | |
| 143 | // RUN: %clang -target x86_64-apple-darwin12 -### %t.o 2> %t.log |
| 144 | // RUN: FileCheck -check-prefix=LINK_NO_CRT1 %s < %t.log |
| 145 | // LINK_NO_CRT1-NOT: crt |
Bob Wilson | 1fc6e4f | 2012-07-03 20:42:10 +0000 | [diff] [blame] | 146 | |
Daniel Dunbar | 7a0c064 | 2012-10-15 22:23:53 +0000 | [diff] [blame] | 147 | // RUN: %clang -target armv7-apple-ios6.0 -miphoneos-version-min=6.0 -### %t.o 2> %t.log |
| 148 | // RUN: FileCheck -check-prefix=LINK_NO_IOS_CRT1 %s < %t.log |
| 149 | // LINK_NO_IOS_CRT1-NOT: crt |
| 150 | |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 151 | // RUN: %clang -target arm64-apple-ios5.0 -miphoneos-version-min=5.0 -### %t.o 2> %t.log |
| 152 | // RUN: FileCheck -check-prefix=LINK_NO_IOS_ARM64_CRT1 %s < %t.log |
| 153 | // LINK_NO_IOS_ARM64_CRT1-NOT: crt |
| 154 | |
Bob Wilson | 1fc6e4f | 2012-07-03 20:42:10 +0000 | [diff] [blame] | 155 | // RUN: %clang -target i386-apple-darwin12 -pg -### %t.o 2> %t.log |
| 156 | // RUN: FileCheck -check-prefix=LINK_PG %s < %t.log |
| 157 | // LINK_PG: -lgcrt1.o |
| 158 | // LINK_PG: -no_new_main |
Bob Wilson | bd77c59 | 2013-08-02 22:25:34 +0000 | [diff] [blame] | 159 | |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 160 | // Check that clang links with libgcc_s.1 for iOS 4 and earlier, but not arm64. |
| 161 | // RUN: %clang -target armv7-apple-ios4.0 -miphoneos-version-min=4.0 -### %t.o 2> %t.log |
| 162 | // RUN: FileCheck -check-prefix=LINK_IOS_LIBGCC_S %s < %t.log |
| 163 | // LINK_IOS_LIBGCC_S: lgcc_s.1 |
| 164 | |
| 165 | // RUN: %clang -target arm64-apple-ios4.0 -miphoneos-version-min=4.0 -### %t.o 2> %t.log |
| 166 | // RUN: FileCheck -check-prefix=LINK_NO_IOS_ARM64_LIBGCC_S %s < %t.log |
| 167 | // LINK_NO_IOS_ARM64_LIBGCC_S-NOT: lgcc_s.1 |
| 168 | |
Bob Wilson | bd77c59 | 2013-08-02 22:25:34 +0000 | [diff] [blame] | 169 | // RUN: %clang -target x86_64-apple-darwin12 -rdynamic -### %t.o \ |
| 170 | // RUN: -mlinker-version=100 2> %t.log |
| 171 | // RUN: FileCheck -check-prefix=LINK_NO_EXPORT_DYNAMIC %s < %t.log |
| 172 | // LINK_NO_EXPORT_DYNAMIC: {{ld(.exe)?"}} |
| 173 | // LINK_NO_EXPORT_DYNAMIC-NOT: "-export_dynamic" |
| 174 | |
| 175 | // RUN: %clang -target x86_64-apple-darwin12 -rdynamic -### %t.o \ |
| 176 | // RUN: -mlinker-version=137 2> %t.log |
| 177 | // RUN: FileCheck -check-prefix=LINK_EXPORT_DYNAMIC %s < %t.log |
| 178 | // LINK_EXPORT_DYNAMIC: {{ld(.exe)?"}} |
| 179 | // LINK_EXPORT_DYNAMIC: "-export_dynamic" |
| 180 | |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 181 | // RUN: %clang -target x86_64h-apple-darwin -### %t.o 2> %t.log |
| 182 | // RUN: FileCheck -check-prefix=LINK_X86_64H_ARCH %s < %t.log |
| 183 | // |
| 184 | // LINK_X86_64H_ARCH: {{ld(.exe)?"}} |
| 185 | // LINK_X86_64H_ARCH: "x86_64h" |
Bob Wilson | bd77c59 | 2013-08-02 22:25:34 +0000 | [diff] [blame] | 186 | |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 187 | // RUN: %clang -target x86_64-apple-darwin -arch x86_64 -arch x86_64h -### %t.o 2> %t.log |
| 188 | // RUN: FileCheck -check-prefix=LINK_X86_64H_MULTIARCH %s < %t.log |
| 189 | // |
| 190 | // LINK_X86_64H_MULTIARCH: {{ld(.exe)?"}} |
| 191 | // LINK_X86_64H_MULTIARCH: "x86_64" |
| 192 | // |
| 193 | // LINK_X86_64H_MULTIARCH: {{ld(.exe)?"}} |
| 194 | // LINK_X86_64H_MULTIARCH: "x86_64h" |
| 195 | |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 196 | // Check for the linker options to specify the iOS version when the |
| 197 | // IPHONEOS_DEPLOYMENT_TARGET variable is used instead of the command-line |
| 198 | // deployment target options. |
| 199 | // RUN: env IPHONEOS_DEPLOYMENT_TARGET=7.0 \ |
| 200 | // RUN: %clang -target arm64-apple-darwin -### %t.o 2> %t.log |
| 201 | // RUN: FileCheck -check-prefix=LINK_IPHONEOS_VERSION_MIN %s < %t.log |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 202 | // RUN: env IPHONEOS_DEPLOYMENT_TARGET=7.0 \ |
| 203 | // RUN: %clang -target i386-apple-darwin -### %t.o 2> %t.log |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 204 | // RUN: FileCheck -check-prefix=LINK_IOS_SIMULATOR_VERSION_MIN %s < %t.log |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 205 | // LINK_IPHONEOS_VERSION_MIN: -iphoneos_version_min |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 206 | // LINK_IOS_SIMULATOR_VERSION_MIN: -ios_simulator_version_min |
Stephen Hines | 0e2c34f | 2015-03-23 12:09:02 -0700 | [diff] [blame] | 207 | |
| 208 | // Check -iframework gets forward to ld as -F |
| 209 | // RUN: %clang -target x86_64-apple-darwin %s -iframework Bar -framework Foo -### 2>&1 | \ |
| 210 | // RUN: FileCheck --check-prefix=LINK-IFRAMEWORK %s |
| 211 | // LINK-IFRAMEWORK: {{ld(.exe)?"}} |
| 212 | // LINK-IFRAMEWORK: "-FBar" |