diff options
author | Austin Morton <austinpmorton@gmail.com> | 2019-05-29 04:13:44 -0400 |
---|---|---|
committer | Austin Morton <austinpmorton@gmail.com> | 2019-05-29 04:18:19 -0400 |
commit | bf23550d9e7ebf288c3400ff55ce46c2e1e5dcbd (patch) | |
tree | 428adc765ba19aea71aabc75d31b7142bbbd23fa /lib/compilers/argument-parsers.js | |
parent | 90aafb7878c4e04ccb0c37a472a261eff8f140e1 (diff) | |
download | compiler-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.js | 6 |
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; |