switch to using runner instead of preload_tracer
This commit is contained in:
parent
5a03a14bfb
commit
cd2eafc8e3
3 changed files with 16 additions and 20 deletions
|
|
@ -203,18 +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"];
|
||||
const codeqlPlatform = tracerConfig.env["CODEQL_PLATFORM"];
|
||||
tracerConfig.env["CODEQL_PRELOAD_TRACER"] = path.join(
|
||||
codeqlDist,
|
||||
"tools",
|
||||
codeqlPlatform,
|
||||
"preload_tracer"
|
||||
);
|
||||
}
|
||||
// On macos it's necessary to prefix the build command with the runner exectuable
|
||||
// on order to trace when System Integrity Protection is enabled.
|
||||
// The exectuable also exists and works for other platforms so we output this env
|
||||
// var with a path to the runner regardless so it's always available.
|
||||
tracerConfig.env["CODEQL_RUNNER"] = path.join(
|
||||
tracerConfig.env["CODEQL_DIST"],
|
||||
"tools",
|
||||
tracerConfig.env["CODEQL_PLATFORM"],
|
||||
"runner"
|
||||
);
|
||||
|
||||
// Always output a json file of the env that can be consumed programmatically
|
||||
const jsonEnvFile = path.join(config.tempDir, codeqlEnvJsonFilename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue