aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.js
diff options
context:
space:
mode:
authorPartouf <partouf@gmail.com>2018-10-26 13:16:26 +0200
committerPartouf <partouf@gmail.com>2018-10-26 13:16:26 +0200
commitc8b72005e0254f1e7da093c7b58fb82b5ce6dc50 (patch)
treebf0375440aa61b57c2126289e2f8853eea9ebcf5 /lib/compilers/argument-parsers.js
parent5c68da0a4954920d3a3fa351ec2f4385bd36085d (diff)
downloadcompiler-explorer-c8b72005e0254f1e7da093c7b58fb82b5ce6dc50.tar.gz
compiler-explorer-c8b72005e0254f1e7da093c7b58fb82b5ce6dc50.zip
back to base
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r--lib/compilers/argument-parsers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js
index 5516fd37d..49d7cee2a 100644
--- a/lib/compilers/argument-parsers.js
+++ b/lib/compilers/argument-parsers.js
@@ -47,11 +47,12 @@ class BaseParser {
previousOption = match[1];
options[previousOption] = {
- description: match[2]
+ description: match[2],
+ timesused: 0
};
});
}
- compiler.compiler.possibleArguments = options;
+ compiler.possibleArguments = options;
return options;
});
}
@@ -68,7 +69,6 @@ class GCCParser extends BaseParser {
GCCParser.getOptions(compiler, "--help=common")
]).then(results => {
const options = _.extend.apply(_.extend, results);
- compiler.compiler.possibleArguments = options;
const keys = _.keys(options);
logger.debug("gcc-like compiler options: ", keys.join(" "));
if (options['-masm']) {