Pass build mode to database init when set
This commit is contained in:
parent
55c1fd5777
commit
d982a14465
3 changed files with 11 additions and 1 deletions
|
|
@ -597,6 +597,12 @@ export async function getCodeQLForCmd(
|
|||
extraArgs.push("--external-repository-token-stdin");
|
||||
}
|
||||
|
||||
if (
|
||||
config.buildMode !== undefined &&
|
||||
(await this.supportsFeature(ToolsFeature.BuildModeOption))
|
||||
) {
|
||||
extraArgs.push(`--build-mode=${config.buildMode}`);
|
||||
}
|
||||
if (
|
||||
qlconfigFile !== undefined &&
|
||||
(await util.codeQlVersionAbove(this, CODEQL_VERSION_INIT_WITH_QLCONFIG))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue