@@ -77,6 +77,13 @@ def _get_bisect_limits(self):
7777
7878 return limits
7979
80+ def handle_options (self , defaults ):
81+ options = self .context .options
82+ if "clang" not in options .builder .lower ():
83+ raise Error ("--builder %s is not supported by the clang-opt-bisect tool - only 'clang' is "
84+ "supported " % options .builder )
85+ super (Tool , self ).handle_options (defaults )
86+
8087 def _run_test (self , test_name ): # noqa
8188 options = self .context .options
8289
@@ -177,7 +184,7 @@ def _run_test(self, test_name): # noqa
177184 file_name = '' .join (
178185 c for c in file_name
179186 if c .isalnum () or c in '()-_./ ' ).strip ().replace (
180- ' ' , '_' ).replace ('/' , '_' )
187+ ' ' , '_' ).replace ('/' , '_' )
181188
182189 output_text_path = os .path .join (options .results_directory ,
183190 '{}.txt' .format (file_name ))
@@ -188,7 +195,7 @@ def _run_test(self, test_name): # noqa
188195 heuristic_verbose_output + '\n ' , stream = Stream (fp ))
189196
190197 output_dextIR_path = os .path .join (options .results_directory ,
191- '{}.dextIR' .format (file_name ))
198+ '{}.dextIR' .format (file_name ))
192199 with open (output_dextIR_path , 'wb' ) as fp :
193200 pickle .dump (steps , fp , protocol = pickle .HIGHEST_PROTOCOL )
194201
@@ -229,7 +236,6 @@ def _handle_results(self) -> ReturnCode:
229236 self ._all_bisect_pass_summary )
230237 return ReturnCode .OK
231238
232-
233239 def _clang_opt_bisect_build (self , opt_bisect_limits ):
234240 options = self .context .options
235241 compiler_options = [
0 commit comments