aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.js
diff options
context:
space:
mode:
authorAustin Morton <austinpmorton@gmail.com>2019-05-29 04:13:44 -0400
committerAustin Morton <austinpmorton@gmail.com>2019-05-29 04:18:19 -0400
commitbf23550d9e7ebf288c3400ff55ce46c2e1e5dcbd (patch)
tree428adc765ba19aea71aabc75d31b7142bbbd23fa /lib/compilers/argument-parsers.js
parent90aafb7878c4e04ccb0c37a472a261eff8f140e1 (diff)
downloadcompiler-explorer-bf23550d9e7ebf288c3400ff55ce46c2e1e5dcbd.tar.gz
compiler-explorer-bf23550d9e7ebf288c3400ff55ce46c2e1e5dcbd.zip
Allow caching of compiler version and argument information to improve startup time
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 adae6e81f..ef43071de 100644
--- a/lib/compilers/argument-parsers.js
+++ b/lib/compilers/argument-parsers.js
@@ -66,7 +66,7 @@ class BaseParser {
}
static getOptions(compiler, helpArg) {
- return compiler.exec(compiler.compiler.exe, [helpArg]).then(result => {
+ return compiler.execCompilerCached(compiler.compiler.exe, [helpArg]).then(result => {
let options = {};
if (result.code === 0) {
const optionFinder = /^\s*(--?[a-z0-9=+,[\]<>|-]*)\s*(.*)/i;
@@ -153,7 +153,7 @@ class ISPCParser extends BaseParser {
}
static getOptions(compiler, helpArg) {
- return compiler.exec(compiler.compiler.exe, [helpArg]).then(result => {
+ return compiler.execCompilerCached(compiler.compiler.exe, [helpArg]).then(result => {
let options = {};
if (result.code === 0) {
const optionFinder = /^\s*\[(--?[a-z0-9=+,{}\s[\]<>|-]*)\]\s*(.*)/i;
@@ -231,7 +231,7 @@ class VCParser extends BaseParser {
}
static getOptions(compiler, helpArg) {
- return compiler.exec(compiler.compiler.exe, [helpArg]).then(result => {
+ return compiler.execCompilerCached(compiler.compiler.exe, [helpArg]).then(result => {
let options = {};
if (result.code === 0) {
const optionFinder = /^\s*(\/[a-z0-9=:+#.,[\]{}<>|_-]*)\s*(.*)/i;