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
This commit is contained in:
@@ -51,17 +51,11 @@ declare -a kotlin_args
|
|||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-D*)
|
-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")
|
java_args=("${java_args[@]}" "$1")
|
||||||
kotlin_args=("${kotlin_args[@]}" "$1")
|
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-J*)
|
-J*)
|
||||||
# as with -D, pass to kotlin even though it will almost
|
|
||||||
# never be used.
|
|
||||||
java_args=("${java_args[@]}" "${1:2}")
|
java_args=("${java_args[@]}" "${1:2}")
|
||||||
kotlin_args=("${kotlin_args[@]}" "$1")
|
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user