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

Method runCompiler

lib/compilers/hook.ts:70–80  ·  view source on GitHub ↗
(
        compiler: string,
        options: string[],
        inputFilename: string,
        execOptions: ExecutionOptionsWithEnv,
    )

Source from the content-addressed store, hash-verified

68 }
69
70 override async runCompiler(
71 compiler: string,
72 options: string[],
73 inputFilename: string,
74 execOptions: ExecutionOptionsWithEnv,
75 ): Promise<CompilationResult> {
76 const dirPath = path.dirname(inputFilename);
77 const outputFilename = this.getOutputFilename(dirPath);
78 options.push(outputFilename);
79 return super.runCompiler(compiler, options, inputFilename, execOptions);
80 }
81
82 override async processAsm(result, filters: ParseFiltersAndOutputOptions, options: string[]) {
83 // Ignoring `trim` filter because it is not supported by Hook.

Callers

nothing calls this directly

Calls 2

getOutputFilenameMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected