MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / runTool

Method runTool

lib/tooling/bloaty-tool.ts:34–43  ·  view source on GitHub ↗
(compilationInfo: CompilationInfo, inputFilepath?: string, args?: string[])

Source from the content-addressed store, hash-verified

32 }
33
34 override async runTool(compilationInfo: CompilationInfo, inputFilepath?: string, args?: string[]) {
35 if (!compilationInfo.filters.binary && !compilationInfo.filters.binaryObject) {
36 return this.createErrorResponse(`${this.tool.name ?? 'bloaty'} requires an executable or binary object`);
37 }
38
39 if (await fileExists(compilationInfo.executableFilename)) {
40 return super.runTool(compilationInfo, compilationInfo.executableFilename, args);
41 }
42 return super.runTool(compilationInfo, compilationInfo.outputFilename, args);
43 }
44}

Callers

nothing calls this directly

Calls 3

fileExistsFunction · 0.85
createErrorResponseMethod · 0.80
runToolMethod · 0.65

Tested by

no test coverage detected