[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:
committed by
Space Team
parent
1182903b20
commit
a11be433e2
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user