Respect JAVA_OPTS env variable in CLI tools. (#1478)
This commit is contained in:
@@ -19,3 +19,9 @@ It will produce platform-specific shared object (.so on Linux, .dylib on macOS a
|
||||
C language header, allowing to use all public APIs available in your Kotlin/Native program from C code.
|
||||
See `samples/python_extension` as an example of using such shared object to provide a bridge between Python and
|
||||
Kotlin/Native.
|
||||
|
||||
Q: How do I run Kotlin/Native behind corporate proxy?
|
||||
|
||||
A: As Kotlin/Native need to download platform specific toolchain, you need to specify
|
||||
`-Dhttp.proxyHost=xxx -Dhttp.proxyPort=xxx` as compiler's or `gradlew` arguments,
|
||||
or set it via `JAVA_OPTS` environment variable.
|
||||
|
||||
+2
-1
@@ -68,7 +68,8 @@ java_opts=(-ea \
|
||||
-Xmx3G \
|
||||
"-Djava.library.path=${NATIVE_LIB}" \
|
||||
"-Dkonan.home=${KONAN_HOME}" \
|
||||
-Dfile.encoding=UTF-8)
|
||||
-Dfile.encoding=UTF-8 \
|
||||
${JAVA_OPTS})
|
||||
|
||||
# Unset some environment variables which are set by XCode and may potentially affect the tool executed.
|
||||
for VAR in `cat "${KONAN_HOME}/tools/env_blacklist"`; do
|
||||
|
||||
+2
-1
@@ -72,7 +72,8 @@ set JAVA_OPTS=-ea ^
|
||||
-Xmx3G ^
|
||||
"-Djava.library.path=%NATIVE_LIB%" ^
|
||||
"-Dkonan.home=%_KONAN_HOME%" ^
|
||||
-Dfile.encoding=UTF-8
|
||||
-Dfile.encoding=UTF-8 ^
|
||||
%JAVA_OPTS%
|
||||
|
||||
set LIBCLANG_DISABLE_CRASH_RECOVERY=1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user