MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getLeanPrefix

Method getLeanPrefix

lib/compilers/lean.ts:58–66  ·  view source on GitHub ↗
(compiler: string, execOptions: ExecutionOptionsWithEnv)

Source from the content-addressed store, hash-verified

56 }
57
58 private async getLeanPrefix(compiler: string, execOptions: ExecutionOptionsWithEnv): Promise<string | null> {
59 const prefixResult = await this.exec(compiler, ['--print-prefix'], execOptions);
60 const prefix = prefixResult.stdout.trim();
61 if (prefixResult.code === 0 && prefix) {
62 return prefix;
63 }
64
65 return null;
66 }
67
68 private async getLeancPath(compiler: string, execOptions: ExecutionOptionsWithEnv): Promise<string> {
69 const prefix = await this.getLeanPrefix(compiler, execOptions);

Callers 1

getLeancPathMethod · 0.95

Calls 1

execMethod · 0.45

Tested by

no test coverage detected