@@ -354,17 +354,17 @@ def get_groups(self, tests):
354354 return sorted (list (set ([self .get_group (test ) for test in tests ])))
355355
356356
357- def compile_solutions (self , solutions , is_checker = False ):
357+ def compile_solutions (self , solutions , remove_all_cache = False ):
358358 os .makedirs (paths .get_compilation_log_path (), exist_ok = True )
359359 os .makedirs (paths .get_executables_path (), exist_ok = True )
360360 print ("Compiling %d solutions..." % len (solutions ))
361- args = [(solution , True , is_checker ) for solution in solutions ]
361+ args = [(solution , True , remove_all_cache ) for solution in solutions ]
362362 with mp .Pool (self .cpus ) as pool :
363363 compilation_results = pool .starmap (self .compile , args )
364364 return compilation_results
365365
366366
367- def compile (self , solution , use_extras = False , is_checker = False ):
367+ def compile (self , solution , use_extras = False , remove_all_cache = False ):
368368 os .makedirs (paths .get_compilation_log_path (), exist_ok = True )
369369 os .makedirs (paths .get_executables_path (), exist_ok = True )
370370 compile_log_file = paths .get_compilation_log_path ("%s.compile_log" % package_util .get_file_name (solution ))
@@ -387,7 +387,7 @@ def compile(self, solution, use_extras = False, is_checker = False):
387387 try :
388388 with open (compile_log_file , "w" ) as compile_log :
389389 compile .compile (source_file , output , self .compilers , compile_log , self .args .compile_mode ,
390- extra_compilation_args , extra_compilation_files , is_checker = is_checker )
390+ extra_compilation_args , extra_compilation_files , remove_all_cache = remove_all_cache )
391391 print (util .info ("Compilation of file %s was successful."
392392 % package_util .get_file_name (solution )))
393393 return True
@@ -1177,7 +1177,7 @@ def compile_checker(self):
11771177 checker_basename = os .path .basename (self .checker )
11781178 self .checker_executable = paths .get_executables_path (checker_basename + ".e" )
11791179
1180- checker_compilation = self .compile_solutions ([self .checker ], is_checker = True )
1180+ checker_compilation = self .compile_solutions ([self .checker ], remove_all_cache = True )
11811181 if not checker_compilation [0 ]:
11821182 util .exit_with_error ('Checker compilation failed.' )
11831183
0 commit comments