Skip to content

Commit

Permalink
move CODEQL_RUNNER population to tracer-config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert committed Jan 12, 2021
1 parent cd2eafc commit c796788
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
5 changes: 0 additions & 5 deletions lib/runner.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/runner.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions lib/tracer-config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/tracer-config.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,6 @@ program
);
}

// 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);
fs.writeFileSync(jsonEnvFile, JSON.stringify(tracerConfig.env));
Expand Down
11 changes: 11 additions & 0 deletions src/tracer-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,16 @@ export async function getCombinedTracerConfig(
);
}

// 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;
}

0 comments on commit c796788

Please sign in to comment.