Adding possibility to skip params inheritance on daemon jvm options creation, refactoring appropriate api, using it to fix tests

Original commit: b71fec985f
This commit is contained in:
Ilya Chernikov
2015-11-03 21:56:31 +01:00
parent 1f62b03f13
commit 121caa0d4e
@@ -139,7 +139,7 @@ public object KotlinCompilerRunner {
val libPath = CompilerRunnerUtil.getLibPath(environment.kotlinPaths, messageCollector)
val compilerId = CompilerId.makeCompilerId(File(libPath, "kotlin-compiler.jar"))
val daemonOptions = configureDaemonOptions()
val daemonJVMOptions = configureDaemonJVMOptions(true)
val daemonJVMOptions = configureDaemonJVMOptions(inheritMemoryLimits = true, inheritAdditionalProperties = true)
// the property should be set by default for daemon builds to avoid parallel building problems
// but it cannot be currently set by default globally, because it seems breaks many tests
// TODO: find out how to get rid of the property and make it the default behavior