Use absoluteFile to avoid parentFile of defFile being null while the defFile is something like "-def interop.def". The parent of interop.def should be a existed dir.

This commit is contained in:
enbandari
2017-04-16 06:43:05 +08:00
committed by SvyatoslavScherbina
parent 0f24850f3c
commit a0e0644998
@@ -354,7 +354,7 @@ private fun processLib(konanHome: String,
}
}
val workDir = defFile?.parentFile ?: File(System.getProperty("java.io.tmpdir"))
val workDir = defFile?.absoluteFile?.parentFile ?: File(System.getProperty("java.io.tmpdir"))
if (flavor == KotlinPlatform.JVM) {