aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.js
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2019-06-09 10:35:52 -0500
committerGitHub <noreply@github.com>2019-06-09 10:35:52 -0500
commit8111189d8ff93b64178b902b8547a7432002016b (patch)
tree84e76d37567860234d423dbda2d50e6ee511a828 /lib/compilers/argument-parsers.js
parent6d71f52df667977cc2807f9778d1847055a5dc6b (diff)
parentdba361f5e56934e87e419ba772eecdc83494eb54 (diff)
downloadcompiler-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.js8
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