[K/N] Get rid of predefined values in TempFiles

One step closer to getting rid of this class at all.
This commit is contained in:
Sergey Bogolepov
2023-01-25 12:33:52 +02:00
committed by Space Team
parent 1182903b20
commit a11be433e2
3 changed files with 7 additions and 18 deletions
@@ -30,17 +30,8 @@ class TempFiles(outputPath: String, pathToTemporaryDir: String? = null) {
}
}
private val outputName = File(outputPath).name
val deleteOnExit = pathToTemporaryDir == null || pathToTemporaryDir.isEmpty()
val nativeBinaryFile by lazy { create(outputName,".kt.bc") }
val cAdapterCpp by lazy { create("api", ".cpp") }
val cAdapterBitcode by lazy { create("api", ".bc") }
val nativeBinaryFileName get() = nativeBinaryFile.absolutePath
val cAdapterCppName get() = cAdapterCpp.absolutePath
val cAdapterBitcodeName get() = cAdapterBitcode.absolutePath
private val dir by lazy {
if (deleteOnExit) {
createTempDir("konan_temp")