@@ -140,15 +140,17 @@ def have_host_out_of_process_jit_feature_support():
140140
141141 return False
142142
143- def run_clang_repl (feature_name ):
143+
144+ def run_clang_repl (args ):
144145 clang_repl_exe = lit .util .which ("clang-repl" , config .clang_tools_dir )
145146
146147 if not clang_repl_exe :
147148 return False
148149
149150 try :
150- clang_repl_cmd = subprocess .Popen ([clang_repl_exe , args ],
151- stdout = subprocess .PIPE )
151+ clang_repl_cmd = subprocess .Popen (
152+ [clang_repl_exe , args ], stdout = subprocess .PIPE
153+ )
152154 except OSError :
153155 print ("could not exec clang-repl" )
154156 return False
@@ -158,6 +160,7 @@ def run_clang_repl(feature_name):
158160
159161 return clang_repl_out
160162
163+
161164def have_host_jit_feature_support (feature_name ):
162165 return "true" in run_clang_repl ("--host-supports-" + feature_name )
163166
@@ -194,7 +197,7 @@ def have_host_clang_repl_cuda():
194197 if have_host_clang_repl_cuda ():
195198 config .available_features .add ('host-supports-cuda' )
196199 hosttriple = run_clang_repl ("--host-jit-triple" )
197- config .substitutions .append ("%host-jit-triple" , hosttriple .strip ())
200+ config .substitutions .append (( "%host-jit-triple" , hosttriple .strip () ))
198201
199202 if have_host_out_of_process_jit_feature_support ():
200203 config .available_features .add ("host-supports-out-of-process-jit" )
0 commit comments