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

Method linkExecutable

lib/compilers/ispc.ts:143–149  ·  view source on GitHub ↗
(options: string[], execOptions: ExecutionOptionsWithEnv)

Source from the content-addressed store, hash-verified

141 }
142
143 async linkExecutable(options: string[], execOptions: ExecutionOptionsWithEnv) {
144 // Rely on the fact we definitely put a `-o` in the options.
145 const outputFile = options[options.indexOf('-o') + 1];
146 const renamedFile = outputFile + '.tmp';
147 await fs.rename(outputFile, renamedFile);
148 return await this.exec(this.executableLinker, ['-o', outputFile, renamedFile], execOptions);
149 }
150
151 override async runCompiler(
152 compiler: string,

Callers 1

runCompilerMethod · 0.95

Calls 1

execMethod · 0.45

Tested by

no test coverage detected