Gradle, native: Enable assertions for in process compiler execution
Issue #KT-39764 fixed
This commit is contained in:
committed by
Ilya Matveev
parent
275ce16faa
commit
19dc3f071c
+3
-1
@@ -33,7 +33,9 @@ internal abstract class KotlinToolRunner(
|
|||||||
abstract val isolatedClassLoaderCacheKey: Any
|
abstract val isolatedClassLoaderCacheKey: Any
|
||||||
private fun getIsolatedClassLoader(): ClassLoader = isolatedClassLoadersMap.computeIfAbsent(isolatedClassLoaderCacheKey) {
|
private fun getIsolatedClassLoader(): ClassLoader = isolatedClassLoadersMap.computeIfAbsent(isolatedClassLoaderCacheKey) {
|
||||||
val arrayOfURLs = classpath.map { File(it.absolutePath).toURI().toURL() }.toTypedArray()
|
val arrayOfURLs = classpath.map { File(it.absolutePath).toURI().toURL() }.toTypedArray()
|
||||||
URLClassLoader(arrayOfURLs, null)
|
URLClassLoader(arrayOfURLs, null).apply {
|
||||||
|
setDefaultAssertionStatus(enableAssertions)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
open val defaultMaxHeapSize: String get() = "3G"
|
open val defaultMaxHeapSize: String get() = "3G"
|
||||||
|
|||||||
Reference in New Issue
Block a user