@@ -400,7 +400,7 @@ def create_codeql_test_database(ql_test):
400400 source_dir = os .path .join (g_test_dir , "working\\ " + ql_test .get_ql_name ()+ "\\ " )
401401 db_loc = os .path .join (test_db_dir , ql_test .get_ql_name ()+ "\\ " )
402402
403- codeql_command = [codeql_path , "database" , "create" , "-l" , "cpp" , "-s" , source_dir , "-c" , "msbuild /p:Platform=x64;UseNTIFS=" + ql_test .get_use_ntifs ()+
403+ codeql_command = [codeql_path , "database" , "create" , "-l" , "cpp" , "-s" , source_dir , "--threads=0" , "- c" , "msbuild /p:Platform=x64;UseNTIFS=" + ql_test .get_use_ntifs ()+
404404 " /t:rebuild " + source_dir + ql_test .get_template ().split ("\\ " )[- 1 ] + ".sln" , db_loc ]
405405 print_conditionally (" - Database location: " + db_loc )
406406 print_conditionally (" - Source directory: " + source_dir )
@@ -450,10 +450,9 @@ def analyze_codeql_database(ql_test, db_path=None):
450450 return None
451451
452452 if args .use_codeql_repo :
453- proc_command = [codeql_path , "database" , "analyze" , database_loc , "--format=sarifv2.1.0" , "--output=" + output_file ,ql_test .get_ql_file (), "--additional-packs" , args .use_codeql_repo ]
454-
453+ proc_command = [codeql_path , "database" , "analyze" , database_loc , "--format=sarifv2.1.0" , "--output=" + output_file ,ql_test .get_ql_file (), "--additional-packs" , args .use_codeql_repo , "--threads=0" ]
455454 else :
456- proc_command = [codeql_path , "database" , "analyze" , database_loc , "--format=sarifv2.1.0" , "--output=" + output_file , ql_test .get_ql_file () ]
455+ proc_command = [codeql_path , "database" , "analyze" , database_loc , "--format=sarifv2.1.0" , "--output=" + output_file , ql_test .get_ql_file (), "--threads=0" ]
457456
458457 print_conditionally ("Sarif output location: " + output_file )
459458
0 commit comments