diff options
author | RabsRincon <ruben@rinconblanco.es> | 2019-12-27 17:58:47 +0100 |
---|---|---|
committer | RabsRincon <ruben@rinconblanco.es> | 2019-12-27 17:58:47 +0100 |
commit | 28069395b63d68a77e5e02df10d33c3dabb373ed (patch) | |
tree | 397ad81ba581203f339bc95c753713b320b325ae /lib/compilers/argument-parsers.js | |
parent | f8b83af8cb86fdd2908ad18f6fccbd901e530c33 (diff) | |
download | compiler-explorer-28069395b63d68a77e5e02df10d33c3dabb373ed.tar.gz compiler-explorer-28069395b63d68a77e5e02df10d33c3dabb373ed.zip |
Properly extend rustc argument parser results
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r-- | lib/compilers/argument-parsers.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js index 76e6e2ea1..407c48605 100644 --- a/lib/compilers/argument-parsers.js +++ b/lib/compilers/argument-parsers.js @@ -257,7 +257,8 @@ class RustParser extends BaseParser { RustParser.getOptions(compiler, "--help"), RustParser.getOptions(compiler, "-C help"), RustParser.getOptions(compiler, "--help -v") - ]).then(options => { + ]).then(results => { + const options = _.extend.apply(_.extend, results); if (BaseParser.hasSupport(options, "--color")) { if (compiler.compiler.options) compiler.compiler.options += " "; compiler.compiler.options += "--color=always"; |