Gradle, native: Fix running cinterop on Windows hosts

This commit is contained in:
Ilya Matveev
2020-02-07 13:20:41 +07:00
parent 8cdef13537
commit 10d2eebe28
@@ -104,7 +104,7 @@ internal class KotlinNativeCInteropRunner(project: Project) : KotlinNativeToolRu
}
private val llvmExecutablesPath: String? by lazy {
if (HostManager.host != KonanTarget.MINGW_X64) {
if (HostManager.host == KonanTarget.MINGW_X64) {
// TODO: Read it from Platform properties when it is accessible.
val konanProperties = Properties().apply {
project.file("${project.konanHome}/konan/konan.properties").inputStream().use(::load)