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:
committed by
SvyatoslavScherbina
parent
0f24850f3c
commit
a0e0644998
+1
-1
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user