[IR SERIALIZATION] Fix zipped layout

This commit is contained in:
Roman Artemev
2019-08-15 17:17:42 +03:00
committed by romanart
parent 90504c797a
commit f2a5ab8c16
@@ -111,7 +111,7 @@ fun KotlinLibraryLayoutImpl.extractDir(directory: File): File = this.klib.withZi
}
open class ExtractingKotlinLibraryLayout(zipped: KotlinLibraryLayoutImpl) : KotlinLibraryLayout {
override val libDir get() = error("Extracting layout doesn't extract its own root")
override val libDir: File get() = error("Extracting layout doesn't extract its own root")
override val libraryName = zipped.libraryName
}
@@ -139,6 +139,10 @@ class ExtractingIrLibraryImpl(val zipped: IrLibraryLayoutImpl) :
override val irTypes: File by lazy { zipped.extract(zipped.irTypes) }
override val irStrings: File by lazy { zipped.extract(zipped.irStrings) }
override val irBodies: File by lazy { zipped.extract(zipped.irBodies) }
override val irFiles: File by lazy { zipped.extract(zipped.irFiles) }
}
internal fun zippedKotlinLibraryChecks(klibFile: File) {