From f94b48cbe0486d24b36cd0c42a7bc5d3eace8681 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Wed, 5 Oct 2016 08:24:57 +0300 Subject: [PATCH] Interop/Plugin: enable assertions when generating stubs --- .../main/groovy/org/jetbrains/kotlin/NativeInteropPlugin.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildSrc/src/main/groovy/org/jetbrains/kotlin/NativeInteropPlugin.groovy b/buildSrc/src/main/groovy/org/jetbrains/kotlin/NativeInteropPlugin.groovy index d021f5f4de0..1d82682bfa7 100644 --- a/buildSrc/src/main/groovy/org/jetbrains/kotlin/NativeInteropPlugin.groovy +++ b/buildSrc/src/main/groovy/org/jetbrains/kotlin/NativeInteropPlugin.groovy @@ -28,6 +28,8 @@ class NativeInteropPlugin implements Plugin { def genStubsTask = prj.task(sourceSet.getTaskName("gen", "interopStubs"), type: JavaExec) { classpath = prj.configurations.interopStubGenerator main = "org.jetbrains.kotlin.native.interop.gen.jvm.MainKt" + jvmArgs '-ea' + systemProperties "java.library.path" : new File(prj.findProject(":Interop:Indexer").buildDir, "nativelibs") systemProperties "llvmInstallPath" : prj.llvmInstallPath environment "LIBCLANG_DISABLE_CRASH_RECOVERY": "1"