Output path to preload_tracer
This commit is contained in:
parent
a0c4707dcc
commit
dbd8007298
3 changed files with 17 additions and 1 deletions
6
lib/runner.js
generated
6
lib/runner.js
generated
|
|
@ -126,6 +126,12 @@ program
|
|||
if (process.platform === "win32") {
|
||||
await init_1.injectWindowsTracer(parseTraceProcessName(), parseTraceProcessLevel(), config, codeql, tracerConfig);
|
||||
}
|
||||
// On macos include the path to preload_tracer in the env as that
|
||||
// executable is needed to trace when System Integrity Protection is enabled.
|
||||
if (process.platform === "darwin") {
|
||||
const codeqlDist = tracerConfig.env["CODEQL_DIST"];
|
||||
tracerConfig.env["CODEQL_PRELOAD_TRACER"] = path.join(codeqlDist, "tools/osx64/preload_tracer");
|
||||
}
|
||||
// Always output a json file of the env that can be consumed programmatically
|
||||
const jsonEnvFile = path.join(config.tempDir, codeqlEnvJsonFilename);
|
||||
fs.writeFileSync(jsonEnvFile, JSON.stringify(tracerConfig.env));
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -203,6 +203,16 @@ program
|
|||
);
|
||||
}
|
||||
|
||||
// On macos include the path to preload_tracer in the env as that
|
||||
// executable is needed to trace when System Integrity Protection is enabled.
|
||||
if (process.platform === "darwin") {
|
||||
const codeqlDist = tracerConfig.env["CODEQL_DIST"];
|
||||
tracerConfig.env["CODEQL_PRELOAD_TRACER"] = path.join(
|
||||
codeqlDist,
|
||||
"tools/osx64/preload_tracer"
|
||||
);
|
||||
}
|
||||
|
||||
// Always output a json file of the env that can be consumed programmatically
|
||||
const jsonEnvFile = path.join(config.tempDir, codeqlEnvJsonFilename);
|
||||
fs.writeFileSync(jsonEnvFile, JSON.stringify(tracerConfig.env));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue