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

Method execPostProcess

lib/base-compiler.ts:3842–3845  ·  view source on GitHub ↗
(result, postProcesses: string[], outputFilename: string, maxSize: number)

Source from the content-addressed store, hash-verified

3840 }
3841
3842 async execPostProcess(result, postProcesses: string[], outputFilename: string, maxSize: number) {
3843 const postCommand = `cat "${outputFilename}" | ${postProcesses.join(' | ')}`;
3844 return this.handlePostProcessResult(result, await this.exec('bash', ['-c', postCommand], {maxOutput: maxSize}));
3845 }
3846
3847 preProcess(source: string, filters: CompilerOutputOptions): string {
3848 if (filters.binary && !this.stubRe.test(source)) {

Callers 1

postProcessMethod · 0.95

Calls 2

execMethod · 0.95

Tested by

no test coverage detected