@@ -48,6 +48,7 @@ def default_args(self):
48
48
return Namespace (host_cc = "/path/to/clang" ,
49
49
host_cxx = "/path/to/clang++" ,
50
50
host_libtool = "/path/to/libtool" ,
51
+ host_ar = "/path/to/ar" ,
51
52
enable_asan = False ,
52
53
enable_ubsan = False ,
53
54
enable_tsan = False ,
@@ -81,6 +82,7 @@ def cmake(self, args):
81
82
toolchain .cc = args .host_cc
82
83
toolchain .cxx = args .host_cxx
83
84
toolchain .libtool = args .host_libtool
85
+ toolchain .ar = args .host_ar
84
86
if args .distcc :
85
87
toolchain .distcc = self .mock_distcc_path ()
86
88
if args .sccache :
@@ -97,6 +99,7 @@ def test_common_options_defaults(self):
97
99
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
98
100
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
99
101
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
102
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
100
103
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
101
104
102
105
def test_common_options_asan (self ):
@@ -110,6 +113,7 @@ def test_common_options_asan(self):
110
113
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
111
114
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
112
115
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
116
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
113
117
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
114
118
115
119
def test_common_options_ubsan (self ):
@@ -123,6 +127,7 @@ def test_common_options_ubsan(self):
123
127
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
124
128
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
125
129
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
130
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
126
131
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
127
132
128
133
def test_common_options_tsan (self ):
@@ -136,6 +141,7 @@ def test_common_options_tsan(self):
136
141
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
137
142
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
138
143
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
144
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
139
145
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
140
146
141
147
def test_common_options_asan_ubsan (self ):
@@ -150,6 +156,7 @@ def test_common_options_asan_ubsan(self):
150
156
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
151
157
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
152
158
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
159
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
153
160
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
154
161
155
162
def test_common_options_ubsan_tsan (self ):
@@ -164,6 +171,7 @@ def test_common_options_ubsan_tsan(self):
164
171
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
165
172
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
166
173
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
174
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
167
175
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
168
176
169
177
def test_common_options_asan_ubsan_tsan (self ):
@@ -179,6 +187,7 @@ def test_common_options_asan_ubsan_tsan(self):
179
187
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
180
188
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
181
189
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
190
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
182
191
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
183
192
184
193
def test_common_options_lsan (self ):
@@ -192,6 +201,7 @@ def test_common_options_lsan(self):
192
201
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
193
202
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
194
203
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
204
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
195
205
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
196
206
197
207
def test_common_options_coverage_sanitizer (self ):
@@ -205,6 +215,7 @@ def test_common_options_coverage_sanitizer(self):
205
215
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
206
216
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
207
217
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
218
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
208
219
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
209
220
210
221
def test_common_options_export_compile_commands (self ):
@@ -218,6 +229,7 @@ def test_common_options_export_compile_commands(self):
218
229
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
219
230
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
220
231
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
232
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
221
233
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
222
234
223
235
def test_common_options_distcc (self ):
@@ -232,6 +244,7 @@ def test_common_options_distcc(self):
232
244
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
233
245
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
234
246
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
247
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
235
248
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
236
249
237
250
def test_common_options_sccache (self ):
@@ -246,6 +259,7 @@ def test_common_options_sccache(self):
246
259
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
247
260
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
248
261
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
262
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
249
263
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
250
264
251
265
def test_common_options_launcher (self ):
@@ -263,6 +277,7 @@ def test_common_options_launcher(self):
263
277
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
264
278
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
265
279
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
280
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
266
281
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
267
282
268
283
def test_common_options_xcode (self ):
@@ -275,6 +290,7 @@ def test_common_options_xcode(self):
275
290
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
276
291
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
277
292
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
293
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
278
294
"-DCMAKE_CONFIGURATION_TYPES=" +
279
295
"Debug;Release;MinSizeRel;RelWithDebInfo" ])
280
296
@@ -288,6 +304,7 @@ def test_common_options_clang_compiler_version(self):
288
304
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
289
305
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
290
306
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
307
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
291
308
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
292
309
293
310
def test_common_options_clang_user_visible_version (self ):
@@ -300,6 +317,7 @@ def test_common_options_clang_user_visible_version(self):
300
317
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
301
318
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
302
319
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
320
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
303
321
"-DLLVM_VERSION_MAJOR:STRING=9" ,
304
322
"-DLLVM_VERSION_MINOR:STRING=0" ,
305
323
"-DLLVM_VERSION_PATCH:STRING=0" ,
@@ -318,6 +336,7 @@ def test_common_options_build_ninja(self):
318
336
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
319
337
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
320
338
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
339
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
321
340
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
322
341
323
342
def test_common_options_full (self ):
@@ -341,6 +360,7 @@ def test_common_options_full(self):
341
360
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
342
361
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
343
362
"-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
363
+ "-DCMAKE_AR:PATH=/path/to/ar" ,
344
364
"-DCMAKE_CONFIGURATION_TYPES=" +
345
365
"Debug;Release;MinSizeRel;RelWithDebInfo" ,
346
366
"-DLLVM_VERSION_MAJOR:STRING=9" ,
0 commit comments