@@ -49,6 +49,7 @@ def default_args(self):
49
49
host_cxx = "/path/to/clang++" ,
50
50
host_swiftc = "/path/to/swiftc" ,
51
51
host_libtool = "/path/to/libtool" ,
52
+ host_ar = "/path/to/ar" ,
52
53
enable_asan = False ,
53
54
enable_ubsan = False ,
54
55
enable_tsan = False ,
@@ -83,6 +84,7 @@ def cmake(self, args):
83
84
toolchain .cxx = args .host_cxx
84
85
toolchain .swiftc = args .host_swiftc
85
86
toolchain .libtool = args .host_libtool
87
+ toolchain .ar = args .host_ar
86
88
if args .distcc :
87
89
toolchain .distcc = self .mock_distcc_path ()
88
90
if args .sccache :
@@ -100,6 +102,7 @@ def test_common_options_defaults(self):
100
102
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
101
103
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
102
104
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
105
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
103
106
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
104
107
105
108
def test_common_options_asan (self ):
@@ -114,6 +117,7 @@ def test_common_options_asan(self):
114
117
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
115
118
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
116
119
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
120
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
117
121
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
118
122
119
123
def test_common_options_ubsan (self ):
@@ -128,6 +132,7 @@ def test_common_options_ubsan(self):
128
132
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
129
133
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
130
134
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
135
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
131
136
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
132
137
133
138
def test_common_options_tsan (self ):
@@ -142,6 +147,7 @@ def test_common_options_tsan(self):
142
147
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
143
148
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
144
149
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
150
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
145
151
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
146
152
147
153
def test_common_options_asan_ubsan (self ):
@@ -157,6 +163,7 @@ def test_common_options_asan_ubsan(self):
157
163
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
158
164
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
159
165
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
166
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
160
167
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
161
168
162
169
def test_common_options_ubsan_tsan (self ):
@@ -172,6 +179,7 @@ def test_common_options_ubsan_tsan(self):
172
179
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
173
180
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
174
181
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
182
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
175
183
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
176
184
177
185
def test_common_options_asan_ubsan_tsan (self ):
@@ -188,6 +196,7 @@ def test_common_options_asan_ubsan_tsan(self):
188
196
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
189
197
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
190
198
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
199
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
191
200
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
192
201
193
202
def test_common_options_lsan (self ):
@@ -202,6 +211,7 @@ def test_common_options_lsan(self):
202
211
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
203
212
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
204
213
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
214
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
205
215
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
206
216
207
217
def test_common_options_coverage_sanitizer (self ):
@@ -216,6 +226,7 @@ def test_common_options_coverage_sanitizer(self):
216
226
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
217
227
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
218
228
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
229
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
219
230
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
220
231
221
232
def test_common_options_export_compile_commands (self ):
@@ -230,6 +241,7 @@ def test_common_options_export_compile_commands(self):
230
241
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
231
242
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
232
243
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
244
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
233
245
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
234
246
235
247
def test_common_options_distcc (self ):
@@ -245,6 +257,7 @@ def test_common_options_distcc(self):
245
257
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
246
258
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
247
259
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
260
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
248
261
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
249
262
250
263
def test_common_options_sccache (self ):
@@ -260,6 +273,7 @@ def test_common_options_sccache(self):
260
273
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
261
274
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
262
275
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
276
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
263
277
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
264
278
265
279
def test_common_options_launcher (self ):
@@ -278,6 +292,7 @@ def test_common_options_launcher(self):
278
292
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
279
293
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
280
294
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
295
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
281
296
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
282
297
283
298
def test_common_options_xcode (self ):
@@ -291,6 +306,7 @@ def test_common_options_xcode(self):
291
306
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
292
307
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
293
308
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
309
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
294
310
"-DCMAKE_CONFIGURATION_TYPES=" +
295
311
"Debug;Release;MinSizeRel;RelWithDebInfo" ])
296
312
@@ -305,6 +321,7 @@ def test_common_options_clang_compiler_version(self):
305
321
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
306
322
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
307
323
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
324
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
308
325
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
309
326
310
327
def test_common_options_clang_user_visible_version (self ):
@@ -318,6 +335,7 @@ def test_common_options_clang_user_visible_version(self):
318
335
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
319
336
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
320
337
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
338
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
321
339
"-DLLVM_VERSION_MAJOR:STRING=9" ,
322
340
"-DLLVM_VERSION_MINOR:STRING=0" ,
323
341
"-DLLVM_VERSION_PATCH:STRING=0" ,
@@ -337,6 +355,7 @@ def test_common_options_build_ninja(self):
337
355
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
338
356
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
339
357
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
358
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
340
359
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
341
360
342
361
def test_common_options_full (self ):
@@ -361,6 +380,7 @@ def test_common_options_full(self):
361
380
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
362
381
"-DCMAKE_Swift_COMPILER:PATH=/path/to/swiftc" ,
363
382
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
383
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
364
384
"-DCMAKE_CONFIGURATION_TYPES=" +
365
385
"Debug;Release;MinSizeRel;RelWithDebInfo" ,
366
386
"-DLLVM_VERSION_MAJOR:STRING=9" ,
0 commit comments