diff options
Diffstat (limited to 'lib/compilers/rust.js')
-rw-r--r-- | lib/compilers/rust.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/compilers/rust.js b/lib/compilers/rust.js index 84d0b156c..232e6fe1e 100644 --- a/lib/compilers/rust.js +++ b/lib/compilers/rust.js @@ -26,13 +26,15 @@ import path from 'path'; import _ from 'underscore'; -import { BaseCompiler } from '../base-compiler'; -import { parseRustOutput } from '../utils'; +import {BaseCompiler} from '../base-compiler'; +import {parseRustOutput} from '../utils'; -import { RustParser } from './argument-parsers'; +import {RustParser} from './argument-parsers'; export class RustCompiler extends BaseCompiler { - static get key() { return 'rust'; } + static get key() { + return 'rust'; + } constructor(info, env) { super(info, env); @@ -57,7 +59,7 @@ export class RustCompiler extends BaseCompiler { optionsForBackend(backendOptions, outputFilename) { // The super class handles the GCC dump files that may be needed by // rustc-cg-gcc subclass. - const opts = super.optionsForBackend (backendOptions, outputFilename); + const opts = super.optionsForBackend(backendOptions, outputFilename); if (backendOptions.produceRustMir && this.compiler.supportsRustMirView) { const of = this.getRustMirOutputFilename(outputFilename); @@ -87,8 +89,7 @@ export class RustCompiler extends BaseCompiler { // Override the IR file name method for rustc because the output file is different from clang. getIrOutputFilename(inputFilename) { - return this.getOutputFilename(path.dirname(inputFilename), this.outputFilebase) - .replace('.s', '.ll'); + return this.getOutputFilename(path.dirname(inputFilename), this.outputFilebase).replace('.s', '.ll'); } getArgumentParser() { |