@@ -50,6 +50,7 @@ def default_args(self):
50
50
host_swiftc = "/path/to/swiftc" ,
51
51
host_libtool = "/path/to/libtool" ,
52
52
host_ar = "/path/to/ar" ,
53
+ host_ranlib = "/path/to/ranlib" ,
53
54
enable_asan = False ,
54
55
enable_ubsan = False ,
55
56
enable_tsan = False ,
@@ -85,6 +86,7 @@ def cmake(self, args):
85
86
toolchain .swiftc = args .host_swiftc
86
87
toolchain .libtool = args .host_libtool
87
88
toolchain .ar = args .host_ar
89
+ toolchain .ranlib = args .host_ranlib
88
90
if args .distcc :
89
91
toolchain .distcc = self .mock_distcc_path ()
90
92
if args .sccache :
@@ -103,6 +105,7 @@ def test_common_options_defaults(self):
103
105
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
104
106
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
105
107
"-DCMAKE_AR:PATH=/path/to/ar" ,
108
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
106
109
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
107
110
108
111
def test_common_options_asan (self ):
@@ -118,6 +121,7 @@ def test_common_options_asan(self):
118
121
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
119
122
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
120
123
"-DCMAKE_AR:PATH=/path/to/ar" ,
124
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
121
125
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
122
126
123
127
def test_common_options_ubsan (self ):
@@ -133,6 +137,7 @@ def test_common_options_ubsan(self):
133
137
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
134
138
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
135
139
"-DCMAKE_AR:PATH=/path/to/ar" ,
140
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
136
141
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
137
142
138
143
def test_common_options_tsan (self ):
@@ -148,6 +153,7 @@ def test_common_options_tsan(self):
148
153
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
149
154
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
150
155
"-DCMAKE_AR:PATH=/path/to/ar" ,
156
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
151
157
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
152
158
153
159
def test_common_options_asan_ubsan (self ):
@@ -164,6 +170,7 @@ def test_common_options_asan_ubsan(self):
164
170
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
165
171
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
166
172
"-DCMAKE_AR:PATH=/path/to/ar" ,
173
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
167
174
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
168
175
169
176
def test_common_options_ubsan_tsan (self ):
@@ -180,6 +187,7 @@ def test_common_options_ubsan_tsan(self):
180
187
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
181
188
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
182
189
"-DCMAKE_AR:PATH=/path/to/ar" ,
190
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
183
191
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
184
192
185
193
def test_common_options_asan_ubsan_tsan (self ):
@@ -197,6 +205,7 @@ def test_common_options_asan_ubsan_tsan(self):
197
205
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
198
206
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
199
207
"-DCMAKE_AR:PATH=/path/to/ar" ,
208
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
200
209
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
201
210
202
211
def test_common_options_lsan (self ):
@@ -212,6 +221,7 @@ def test_common_options_lsan(self):
212
221
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
213
222
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
214
223
"-DCMAKE_AR:PATH=/path/to/ar" ,
224
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
215
225
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
216
226
217
227
def test_common_options_coverage_sanitizer (self ):
@@ -227,6 +237,7 @@ def test_common_options_coverage_sanitizer(self):
227
237
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
228
238
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
229
239
"-DCMAKE_AR:PATH=/path/to/ar" ,
240
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
230
241
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
231
242
232
243
def test_common_options_export_compile_commands (self ):
@@ -242,6 +253,7 @@ def test_common_options_export_compile_commands(self):
242
253
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
243
254
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
244
255
"-DCMAKE_AR:PATH=/path/to/ar" ,
256
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
245
257
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
246
258
247
259
def test_common_options_distcc (self ):
@@ -258,6 +270,7 @@ def test_common_options_distcc(self):
258
270
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
259
271
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
260
272
"-DCMAKE_AR:PATH=/path/to/ar" ,
273
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
261
274
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
262
275
263
276
def test_common_options_sccache (self ):
@@ -274,6 +287,7 @@ def test_common_options_sccache(self):
274
287
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
275
288
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
276
289
"-DCMAKE_AR:PATH=/path/to/ar" ,
290
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
277
291
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
278
292
279
293
def test_common_options_launcher (self ):
@@ -293,6 +307,7 @@ def test_common_options_launcher(self):
293
307
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
294
308
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
295
309
"-DCMAKE_AR:PATH=/path/to/ar" ,
310
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
296
311
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
297
312
298
313
def test_common_options_xcode (self ):
@@ -307,6 +322,7 @@ def test_common_options_xcode(self):
307
322
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
308
323
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
309
324
"-DCMAKE_AR:PATH=/path/to/ar" ,
325
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
310
326
"-DCMAKE_CONFIGURATION_TYPES=" +
311
327
"Debug;Release;MinSizeRel;RelWithDebInfo" ])
312
328
@@ -322,6 +338,7 @@ def test_common_options_clang_compiler_version(self):
322
338
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
323
339
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
324
340
"-DCMAKE_AR:PATH=/path/to/ar" ,
341
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
325
342
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
326
343
327
344
def test_common_options_clang_user_visible_version (self ):
@@ -336,6 +353,7 @@ def test_common_options_clang_user_visible_version(self):
336
353
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
337
354
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
338
355
"-DCMAKE_AR:PATH=/path/to/ar" ,
356
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
339
357
"-DLLVM_VERSION_MAJOR:STRING=9" ,
340
358
"-DLLVM_VERSION_MINOR:STRING=0" ,
341
359
"-DLLVM_VERSION_PATCH:STRING=0" ,
@@ -356,6 +374,7 @@ def test_common_options_build_ninja(self):
356
374
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
357
375
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
358
376
"-DCMAKE_AR:PATH=/path/to/ar" ,
377
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
359
378
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
360
379
361
380
def test_common_options_full (self ):
@@ -381,6 +400,7 @@ def test_common_options_full(self):
381
400
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
382
401
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
383
402
"-DCMAKE_AR:PATH=/path/to/ar" ,
403
+ "-DCMAKE_RANLIB:PATH=/path/to/ranlib" ,
384
404
"-DCMAKE_CONFIGURATION_TYPES=" +
385
405
"Debug;Release;MinSizeRel;RelWithDebInfo" ,
386
406
"-DLLVM_VERSION_MAJOR:STRING=9" ,
0 commit comments