Break out tracer-config.ts

This commit is contained in:
Robert Brignull 2020-08-24 12:53:09 +01:00
parent bd54c20d3e
commit 407ef0ac11
26 changed files with 953 additions and 489 deletions

4
lib/codeql.js generated
View file

@ -231,14 +231,12 @@ function getCodeQLForCmd(cmd) {
'--format=json'
]);
},
getTracerEnv: async function (databasePath, compilerSpec) {
getTracerEnv: async function (databasePath) {
let envFile = path.resolve(databasePath, 'working', 'env.tmp');
const compilerSpecArg = compilerSpec ? ["--compiler-spec=" + compilerSpec] : [];
await exec.exec(cmd, [
'database',
'trace-command',
databasePath,
...compilerSpecArg,
...getExtraOptionsFromEnv(['database', 'trace-command']),
process.execPath,
path.resolve(__dirname, 'tracer-env.js'),