Skip to content

Commit c796788

Browse files
move CODEQL_RUNNER population to tracer-config.ts
1 parent cd2eafc commit c796788

6 files changed

Lines changed: 18 additions & 18 deletions

File tree

lib/runner.js

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/runner.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/tracer-config.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/tracer-config.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/runner.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -203,17 +203,6 @@ program
203203
);
204204
}
205205

206-
// On macos it's necessary to prefix the build command with the runner exectuable
207-
// on order to trace when System Integrity Protection is enabled.
208-
// The exectuable also exists and works for other platforms so we output this env
209-
// var with a path to the runner regardless so it's always available.
210-
tracerConfig.env["CODEQL_RUNNER"] = path.join(
211-
tracerConfig.env["CODEQL_DIST"],
212-
"tools",
213-
tracerConfig.env["CODEQL_PLATFORM"],
214-
"runner"
215-
);
216-
217206
// Always output a json file of the env that can be consumed programmatically
218207
const jsonEnvFile = path.join(config.tempDir, codeqlEnvJsonFilename);
219208
fs.writeFileSync(jsonEnvFile, JSON.stringify(tracerConfig.env));

src/tracer-config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,16 @@ export async function getCombinedTracerConfig(
185185
);
186186
}
187187

188+
// On macos it's necessary to prefix the build command with the runner exectuable
189+
// on order to trace when System Integrity Protection is enabled.
190+
// The exectuable also exists and works for other platforms so we output this env
191+
// var with a path to the runner regardless so it's always available.
192+
mainTracerConfig.env["CODEQL_RUNNER"] = path.join(
193+
mainTracerConfig.env["CODEQL_DIST"],
194+
"tools",
195+
mainTracerConfig.env["CODEQL_PLATFORM"],
196+
"runner"
197+
);
198+
188199
return mainTracerConfig;
189200
}

0 commit comments

Comments
 (0)