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

Method optionsForBackend

lib/compilers/rust.ts:243–253  ·  view source on GitHub ↗
(backendOptions: Record<string, any>, outputFilename: string)

Source from the content-addressed store, hash-verified

241 }
242
243 override optionsForBackend(backendOptions: Record<string, any>, outputFilename: string) {
244 // The super class handles the GCC dump files that may be needed by
245 // rustc-cg-gcc subclass.
246 const opts = super.optionsForBackend(backendOptions, outputFilename);
247
248 if (backendOptions.produceRustMir && this.compiler.supportsRustMirView) {
249 const of = this.getRustMirOutputFilename(outputFilename);
250 opts.push('--emit', `mir=${of}`);
251 }
252 return opts;
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

Callers 2

prepareArgumentsMethod · 0.45
prepareArgumentsMethod · 0.45

Calls 2

pushMethod · 0.80

Tested by

no test coverage detected