Pass explicit option to disable intra-layer parallelism

This commit is contained in:
Nick Rolfe 2023-07-31 11:47:25 +01:00
parent cf445f7cf3
commit c7b7456c9e
6 changed files with 25 additions and 5 deletions

3
lib/codeql.js generated
View file

@ -442,6 +442,9 @@ async function getCodeQLForCmd(cmd, checkVersion) {
if (await features.getValue(feature_flags_1.Feature.EvaluatorIntraLayerParallelismEnabled, this)) {
codeqlArgs.push("--intra-layer-parallelism");
}
else if (await util.codeQlVersionAbove(this, feature_flags_1.CODEQL_VERSION_INTRA_LAYER_PARALLELISM)) {
codeqlArgs.push("--no-intra-layer-parallelism");
}
await runTool(cmd, codeqlArgs);
},
async databaseInterpretResults(databasePath, querySuitePaths, sarifFile, addSnippetsFlag, threadsFlag, verbosityFlag, automationDetailsId, config, features, logger) {