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

Method getOptFilePath

lib/compilers/rust.ts:255–265  ·  view source on GitHub ↗
(dirPath: string, outputFilebase: string)

Source from the content-addressed store, hash-verified

253 }
254
255 override getOptFilePath(dirPath: string, outputFilebase: string): string {
256 // Find a file in dirPath that ends with codegen.opt.yaml, and return it
257 // A bit of a hack, but it works for now
258 const files = readdirSync(dirPath);
259 for (const file of files) {
260 if (file.endsWith('codegen.opt.yaml')) {
261 return path.join(dirPath, file);
262 }
263 }
264 return '';
265 }
266
267 override prepareOptRemarksArgs(options: string[], outputFilename: string): string[] {
268 const outputDir = path.dirname(outputFilename);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected