move CODEQL_RUNNER population to tracer-config.ts
This commit is contained in:
parent
cd2eafc8e3
commit
c796788c33
6 changed files with 18 additions and 18 deletions
5
lib/tracer-config.js
generated
5
lib/tracer-config.js
generated
|
|
@ -141,6 +141,11 @@ async function getCombinedTracerConfig(config, codeql) {
|
|||
else if (process.platform !== "win32") {
|
||||
mainTracerConfig.env["LD_PRELOAD"] = path.join(codeQLDir, "tools", "linux64", "${LIB}trace.so");
|
||||
}
|
||||
// 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.
|
||||
mainTracerConfig.env["CODEQL_RUNNER"] = path.join(mainTracerConfig.env["CODEQL_DIST"], "tools", mainTracerConfig.env["CODEQL_PLATFORM"], "runner");
|
||||
return mainTracerConfig;
|
||||
}
|
||||
exports.getCombinedTracerConfig = getCombinedTracerConfig;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue