use CODEQL_PLATFORM

This commit is contained in:
Robert 2021-01-12 10:24:25 +00:00
parent dbd8007298
commit 5a03a14bfb
3 changed files with 7 additions and 3 deletions

View file

@ -207,9 +207,12 @@ program
// 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/osx64/preload_tracer"
"tools",
codeqlPlatform,
"preload_tracer"
);
}