Minor tweaks to KonanLibrary.
This commit is contained in:
committed by
alexander-gorshenev
parent
6c00815968
commit
b0d27820c8
+2
-6
@@ -118,16 +118,12 @@ class SplitLibraryReader(override val libDir: File, configuration: CompilerConfi
|
||||
|
||||
if (!libDir.exists) error("Could not unpack $klibFile as $libDir.")
|
||||
} else {
|
||||
error("Expected $klibFile to be a regular libDir.")
|
||||
error("Expected $klibFile to be a regular file.")
|
||||
}
|
||||
}
|
||||
|
||||
private val File.dirAbsolutePaths: List<String>
|
||||
get() = this.listFiles!!.toList()!!.map{it->it.absolutePath}
|
||||
|
||||
override val bitcodePaths: List<String>
|
||||
get() = kotlinDir.dirAbsolutePaths +
|
||||
nativeDir.dirAbsolutePaths
|
||||
get() = (kotlinDir.listFiles + nativeDir.listFiles).map{it.absolutePath}
|
||||
|
||||
}
|
||||
/* ------------ writer part ----------------*/
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ class File(val path: String) {
|
||||
val isFile
|
||||
get() = javaFile.isFile()
|
||||
val listFiles
|
||||
get() = javaFile.listFiles()
|
||||
get() = javaFile.listFiles()!!.toList()
|
||||
|
||||
fun mkdirs() = javaFile.mkdirs()
|
||||
fun delete() = javaFile.delete()
|
||||
|
||||
Reference in New Issue
Block a user