diff options
author | Matt Godbolt <matt@godbolt.org> | 2019-06-09 10:35:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-09 10:35:52 -0500 |
commit | 8111189d8ff93b64178b902b8547a7432002016b (patch) | |
tree | 84e76d37567860234d423dbda2d50e6ee511a828 /lib/compilers/argument-parsers.js | |
parent | 6d71f52df667977cc2807f9778d1847055a5dc6b (diff) | |
parent | dba361f5e56934e87e419ba772eecdc83494eb54 (diff) | |
download | compiler-explorer-8111189d8ff93b64178b902b8547a7432002016b.tar.gz compiler-explorer-8111189d8ff93b64178b902b8547a7432002016b.zip |
Merge pull request #1396 from alshain/java-support
* Added Java support (for Java bytecode only)
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r-- | lib/compilers/argument-parsers.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js index ef43071de..19717dd2d 100644 --- a/lib/compilers/argument-parsers.js +++ b/lib/compilers/argument-parsers.js @@ -166,6 +166,13 @@ class ISPCParser extends BaseParser { } } +class JavaParser extends BaseParser { + + static parse(compiler) { + return JavaParser.getOptions(compiler, "-help").then(() => compiler); + } +} + class VCParser extends BaseParser { static parse(compiler) { return Promise.all([ @@ -248,6 +255,7 @@ module.exports = { Base: BaseParser, Clang: ClangParser, GCC: GCCParser, + Java: JavaParser, VC: VCParser, Pascal: PascalParser, ISPC: ISPCParser |