Revert "[K/N][runtime][interop] Refactoring to run cinterop in daemon"

This reverts commit 47858126da.
This commit is contained in:
Igor Chevdar
2021-11-26 14:05:59 +05:00
parent 0ccb271323
commit 353f82f9e6
14 changed files with 88 additions and 303 deletions
@@ -5,29 +5,13 @@
package org.jetbrains.kotlin.native.interop.indexer
import kotlinx.cinterop.JvmCInteropCallbacks
import org.jetbrains.kotlin.konan.util.NativeMemoryAllocator
import java.io.File
import kotlin.test.AfterTest
import kotlin.test.BeforeTest
open class IndexerTests {
init {
System.load(System.getProperty("kotlin.native.llvm.libclang"))
}
@BeforeTest
fun init() {
NativeMemoryAllocator.init()
JvmCInteropCallbacks.init()
}
@AfterTest
fun dispose() {
JvmCInteropCallbacks.dispose()
NativeMemoryAllocator.dispose()
}
class TempFiles(name: String) {
private val tempRootDir = System.getProperty("kotlin.native.interop.indexer.temp") ?: System.getProperty("java.io.tmpdir") ?: "."