From 2f1316ec9c310564ea9a057ec1abbfe9f2b269dc Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Sun, 14 Jun 2015 01:02:48 +0300 Subject: [PATCH] CLI: don't pass -D and -J options to Kotlin Kotlin compiler's CLI argument parser currently fails on these options, so there was no convenient way to use them --- compiler/cli/bin/kotlinc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/compiler/cli/bin/kotlinc b/compiler/cli/bin/kotlinc index e5d3efafeea..a8e27327636 100755 --- a/compiler/cli/bin/kotlinc +++ b/compiler/cli/bin/kotlinc @@ -51,17 +51,11 @@ declare -a kotlin_args while [ $# -gt 0 ]; do case "$1" in -D*) - # pass to kotlin as well: otherwise we lose it sometimes when we - # need it, e.g. communicating with a server compiler. java_args=("${java_args[@]}" "$1") - kotlin_args=("${kotlin_args[@]}" "$1") shift ;; -J*) - # as with -D, pass to kotlin even though it will almost - # never be used. java_args=("${java_args[@]}" "${1:2}") - kotlin_args=("${kotlin_args[@]}" "$1") shift ;; *)