MCPcopy Create free account
hub / github.com/awslabs/llrt / compile

Function compile

tests/unit/executable.test.ts:17–26  ·  view source on GitHub ↗
(
  filename: string,
  outputFilename: string
)

Source from the content-addressed store, hash-verified

15const IS_WINDOWS = platform() === "win32";
16
17const compile = async (
18 filename: string,
19 outputFilename: string
20): Promise<void> => {
21 const args = ["compile", filename, outputFilename, "--executable"];
22 const { code: compileResult } = await spawnCapture(process.argv0, args);
23 if (compileResult !== 0) {
24 throw new Error(`Compilation failed with exit code ${compileResult}`);
25 }
26};
27
28const run = async (
29 filename: string,

Callers 1

executable.test.tsFile · 0.70

Calls 1

spawnCaptureFunction · 0.90

Tested by

no test coverage detected