aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.js
diff options
context:
space:
mode:
authorDaniel Below <daniel.below@tum.de>2021-06-02 22:58:41 +0200
committerGitHub <noreply@github.com>2021-06-02 22:58:41 +0200
commitb4ebb47ac25e8afe8d77bb617372f6ec13bdb783 (patch)
treedc9829f9674c62c61734554615793b67c8f99bd6 /lib/compilers/argument-parsers.js
parentba2b7c89cb3cba8da9b462199ded435d4d78d63f (diff)
downloadcompiler-explorer-b4ebb47ac25e8afe8d77bb617372f6ec13bdb783.tar.gz
compiler-explorer-b4ebb47ac25e8afe8d77bb617372f6ec13bdb783.zip
Add Kotlin/JVM support (#2637)
* Add Kotlin/JVM support * Update CONTRIBUTORS.md * Use kotlinc-jvm instead of kotlinc * Fix alphabetical ordering * Filter kotlin compiler arguments Extract user options filtering for java into a separate function to handle filtering options with extra arguments. Filter kotlin compiler options: -d, -jdk-home, -kotlin-home, -script, -progressive * Filter -Xjavac user options Filter any option that starts with '-Xjavac', as it could be used to pass unwanted options through kotlinc to javac. * Fix year in copyright Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es> * Add kotlin.amazon.properties * Add JAVA_HOME to kotlin default exec options Query per-compiler property 'java_home' and set environment * Add java_home to kotlin properties Co-authored-by: Daniel Below <daniel.below@jetbrains.com> Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r--lib/compilers/argument-parsers.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js
index 6b139c829..750e9c2ef 100644
--- a/lib/compilers/argument-parsers.js
+++ b/lib/compilers/argument-parsers.js
@@ -178,6 +178,13 @@ export class JavaParser extends BaseParser {
}
}
+export class KotlinParser extends BaseParser {
+ static async parse(compiler) {
+ await KotlinParser.getOptions(compiler, '-help');
+ return compiler;
+ }
+}
+
export class VCParser extends BaseParser {
static async parse(compiler) {
await VCParser.getOptions(compiler, '/help');