@@ -30,6 +30,7 @@ def default_args(self):
30
30
"""
31
31
return Namespace (host_cc = "/path/to/clang" ,
32
32
host_cxx = "/path/to/clang++" ,
33
+ host_libtool = "/path/to/libtool" ,
33
34
enable_asan = False ,
34
35
enable_ubsan = False ,
35
36
enable_tsan = False ,
@@ -58,6 +59,7 @@ def cmake(self, args):
58
59
toolchain = host_toolchain ()
59
60
toolchain .cc = args .host_cc
60
61
toolchain .cxx = args .host_cxx
62
+ toolchain .libtool = args .host_libtool
61
63
if args .distcc :
62
64
toolchain .distcc = self .mock_distcc_path ()
63
65
toolchain .ninja = self .which_ninja (args )
@@ -71,6 +73,7 @@ def test_common_options_defaults(self):
71
73
["-G" , "Ninja" ,
72
74
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
73
75
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
76
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
74
77
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
75
78
76
79
def test_common_options_asan (self ):
@@ -83,6 +86,7 @@ def test_common_options_asan(self):
83
86
"-DLLVM_USE_SANITIZER=Address" ,
84
87
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
85
88
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
89
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
86
90
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
87
91
88
92
def test_common_options_ubsan (self ):
@@ -95,6 +99,7 @@ def test_common_options_ubsan(self):
95
99
"-DLLVM_USE_SANITIZER=Undefined" ,
96
100
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
97
101
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
102
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
98
103
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
99
104
100
105
def test_common_options_tsan (self ):
@@ -107,6 +112,7 @@ def test_common_options_tsan(self):
107
112
"-DLLVM_USE_SANITIZER=Thread" ,
108
113
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
109
114
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
115
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
110
116
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
111
117
112
118
def test_common_options_asan_ubsan (self ):
@@ -120,6 +126,7 @@ def test_common_options_asan_ubsan(self):
120
126
"-DLLVM_USE_SANITIZER=Address;Undefined" ,
121
127
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
122
128
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
129
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
123
130
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
124
131
125
132
def test_common_options_ubsan_tsan (self ):
@@ -133,6 +140,7 @@ def test_common_options_ubsan_tsan(self):
133
140
"-DLLVM_USE_SANITIZER=Undefined;Thread" ,
134
141
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
135
142
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
143
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
136
144
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
137
145
138
146
def test_common_options_asan_ubsan_tsan (self ):
@@ -147,6 +155,7 @@ def test_common_options_asan_ubsan_tsan(self):
147
155
"-DLLVM_USE_SANITIZER=Address;Undefined;Thread" ,
148
156
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
149
157
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
158
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
150
159
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
151
160
152
161
def test_common_options_lsan (self ):
@@ -159,6 +168,7 @@ def test_common_options_lsan(self):
159
168
"-DLLVM_USE_SANITIZER=Leaks" ,
160
169
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
161
170
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
171
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
162
172
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
163
173
164
174
def test_common_options_export_compile_commands (self ):
@@ -171,6 +181,7 @@ def test_common_options_export_compile_commands(self):
171
181
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" ,
172
182
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
173
183
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
184
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
174
185
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
175
186
176
187
def test_common_options_distcc (self ):
@@ -195,6 +206,7 @@ def test_common_options_xcode(self):
195
206
["-G" , "Xcode" ,
196
207
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
197
208
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
209
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
198
210
"-DCMAKE_CONFIGURATION_TYPES=" +
199
211
"Debug;Release;MinSizeRel;RelWithDebInfo" ])
200
212
@@ -209,6 +221,7 @@ def test_common_options_clang_compiler_version(self):
209
221
["-G" , "Ninja" ,
210
222
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
211
223
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
224
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
212
225
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
213
226
214
227
def test_common_options_clang_user_visible_version (self ):
@@ -222,6 +235,7 @@ def test_common_options_clang_user_visible_version(self):
222
235
["-G" , "Ninja" ,
223
236
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
224
237
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
238
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
225
239
"-DLLVM_VERSION_MAJOR:STRING=9" ,
226
240
"-DLLVM_VERSION_MINOR:STRING=0" ,
227
241
"-DLLVM_VERSION_PATCH:STRING=0" ,
@@ -239,6 +253,7 @@ def test_common_options_build_ninja(self):
239
253
["-G" , "Ninja" ,
240
254
"-DCMAKE_C_COMPILER:PATH=/path/to/clang" ,
241
255
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++" ,
256
+ "-DCMAKE_LIBTOOL:PATH=/path/to/libtool" ,
242
257
"-DCMAKE_MAKE_PROGRAM=" + self .which_ninja (args )])
243
258
244
259
def test_common_options_full (self ):
0 commit comments