aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/rustc-cg-gcc.js
diff options
context:
space:
mode:
authorJeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>2023-01-17 12:31:49 -0500
committerJeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>2023-01-17 12:31:49 -0500
commit6207cb2d6e30d709c29175aa9a94707a0f9934d1 (patch)
tree5e51c3ea00760b5452d128d3cf4f54f0c511d65d /lib/compilers/rustc-cg-gcc.js
parent68aa631366bfb5e6efd74f03326795e70894019a (diff)
downloadcompiler-explorer-6207cb2d6e30d709c29175aa9a94707a0f9934d1.tar.gz
compiler-explorer-6207cb2d6e30d709c29175aa9a94707a0f9934d1.zip
npm run lint to get const fixesgh-5871
Diffstat (limited to 'lib/compilers/rustc-cg-gcc.js')
-rw-r--r--lib/compilers/rustc-cg-gcc.js4
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);