Enable direct tracing the autobuild build mode by default

This commit is contained in:
Henry Mercer 2024-06-26 19:38:13 +01:00
parent 9b7c22c3b3
commit a52b209ec8
33 changed files with 84 additions and 130 deletions

4
lib/autobuild.js generated
View file

@ -134,14 +134,14 @@ async function setupCppAutobuild(codeql, logger) {
core.exportVariable(envVar, "false");
}
}
async function runAutobuild(config, language, features, logger) {
async function runAutobuild(config, language, logger) {
logger.startGroup(`Attempting to automatically build ${language} code`);
const codeQL = await (0, codeql_1.getCodeQL)(config.codeQLCmd);
if (language === languages_1.Language.cpp) {
await setupCppAutobuild(codeQL, logger);
}
if (config.buildMode &&
(await features.getValue(feature_flags_1.Feature.AutobuildDirectTracing, codeQL))) {
(await codeQL.supportsFeature(tools_features_1.ToolsFeature.TraceCommandUseBuildMode))) {
await codeQL.extractUsingBuildMode(config, language);
}
else {