samples: Blacklist some xcode environment variables

This patch unsets some Xcode environment variables in gradle
plugin and command line runner.
This commit is contained in:
Ilya Matveev
2017-10-04 18:53:31 +03:00
committed by ilmat192
parent e7cea96692
commit 5eed839f91
5 changed files with 131 additions and 6 deletions
+5
View File
@@ -74,6 +74,11 @@ java_opts=(-ea \
"-Dkonan.home=${KONAN_HOME}" \
-Dfile.encoding=UTF-8)
# 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
unset $VAR
done
KONAN_JAR="${KONAN_HOME}/konan/lib/backend.native.jar"
KOTLIN_JAR="${KONAN_HOME}/konan/lib/kotlin-compiler.jar"
STUB_GENERATOR_JAR="${KONAN_HOME}/konan/lib/StubGenerator.jar"