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

Method runCompiler

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

Source from the content-addressed store, hash-verified

56 }
57
58 override async runCompiler(
59 compiler: string,
60 options: string[],
61 inputFilename: string,
62 execOptions: ExecutionOptionsWithEnv,
63 ) {
64 // mrustc will always invoke a C compiler on its C output to create a final exec/object.
65 // There's no easy way to disable this last step, so simply faking it with 'true' works.
66 execOptions.env.CC = 'true';
67
68 return super.runCompiler(compiler, options, inputFilename, execOptions);
69 }
70
71 override getOutputFilename(dirPath: string) {
72 return path.join(dirPath, `${path.basename(this.compileFilename, this.lang.extensions[0])}.c`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected