Fix kotlinc on Cygwin
Do not convert KOTLIN_HOME back to unix format, since it's passed to Win version of Java, which doesn't understand /cygdrive/.. paths #KT-3049 Fixed
This commit is contained in:
@@ -36,7 +36,6 @@ KOTLIN_HOME=`cd "$KOTLIN_HOME"/..; pwd`
|
|||||||
# Remove spaces from KOTLIN_HOME on windows
|
# Remove spaces from KOTLIN_HOME on windows
|
||||||
if $cygwin; then
|
if $cygwin; then
|
||||||
KOTLIN_HOME=`cygpath --windows --short-name "$KOTLIN_HOME"`
|
KOTLIN_HOME=`cygpath --windows --short-name "$KOTLIN_HOME"`
|
||||||
KOTLIN_HOME=`cygpath --unix "$KOTLIN_HOME"`
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "$JAVA_OPTS" ] || JAVA_OPTS="-Xmx256M -Xms32M"
|
[ -n "$JAVA_OPTS" ] || JAVA_OPTS="-Xmx256M -Xms32M"
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ KOTLIN_HOME=`cd "$KOTLIN_HOME"/..; pwd`
|
|||||||
# Remove spaces from KOTLIN_HOME on windows
|
# Remove spaces from KOTLIN_HOME on windows
|
||||||
if $cygwin; then
|
if $cygwin; then
|
||||||
KOTLIN_HOME=`cygpath --windows --short-name "$KOTLIN_HOME"`
|
KOTLIN_HOME=`cygpath --windows --short-name "$KOTLIN_HOME"`
|
||||||
KOTLIN_HOME=`cygpath --unix "$KOTLIN_HOME"`
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "$JAVA_OPTS" ] || JAVA_OPTS="-Xmx256M -Xms32M"
|
[ -n "$JAVA_OPTS" ] || JAVA_OPTS="-Xmx256M -Xms32M"
|
||||||
|
|||||||
Reference in New Issue
Block a user