diff options
Diffstat (limited to 'lib/compilers/rustc-cg-gcc.js')
-rw-r--r-- | lib/compilers/rustc-cg-gcc.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compilers/rustc-cg-gcc.js b/lib/compilers/rustc-cg-gcc.js index ff6db168a..ed2d3e6d8 100644 --- a/lib/compilers/rustc-cg-gcc.js +++ b/lib/compilers/rustc-cg-gcc.js @@ -54,7 +54,7 @@ export class RustcCgGCCCompiler extends RustCompiler { optionsForFilter(filters, outputFilename, userOptions) { // these options are direcly taken from rustc_codegen_gcc doc. // See https://github.com/antoyo/rustc_codegen_gcc - let toolroot = path.resolve(path.dirname(this.compiler.exe), '..'); + const toolroot = path.resolve(path.dirname(this.compiler.exe), '..'); let options = [ '-C', @@ -67,7 +67,7 @@ export class RustcCgGCCCompiler extends RustCompiler { // rust.js makes the asumption that LLVM is used. This may go away when cranelift is available. // Until this is the case and the super() class is refactored, simply ditch -Cllvm arg. - let super_options = super + const super_options = super .optionsForFilter(filters, outputFilename, userOptions) .filter(arg => !/-Cllvm.*/.test(arg)); options = options.concat(super_options); |