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
4
lib/codeql.js
generated
4
lib/codeql.js
generated
|
|
@ -298,6 +298,10 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||
if (externalRepositoryToken) {
|
||||
extraArgs.push("--external-repository-token-stdin");
|
||||
}
|
||||
if (config.buildMode !== undefined &&
|
||||
(await this.supportsFeature(tools_features_1.ToolsFeature.BuildModeOption))) {
|
||||
extraArgs.push(`--build-mode=${config.buildMode}`);
|
||||
}
|
||||
if (qlconfigFile !== undefined &&
|
||||
(await util.codeQlVersionAbove(this, exports.CODEQL_VERSION_INIT_WITH_QLCONFIG))) {
|
||||
extraArgs.push(`--qlconfig-file=${qlconfigFile}`);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue