Drop all usages of WITH_RUNTIME directive

This commit is contained in:
Ivan Kylchik
2021-11-25 17:41:34 +03:00
committed by TeamCityServer
parent 1874318954
commit b131c52889
24 changed files with 27 additions and 42 deletions
@@ -43,9 +43,8 @@ abstract class AbstractMultiPlatformIntegrationTest : KtUsefulTestCase() {
val tmpdir = KtTestUtil.tmpDir(getTestName(true))
val withRuntime = InTextDirectivesUtils.isDirectiveDefined(commonSrc.readText(), "WITH_RUNTIME") ||
InTextDirectivesUtils.isDirectiveDefined(commonSrc.readText(), "WITH_STDLIB")
val optionalStdlibCommon = if (withRuntime) arrayOf("-cp", findStdlibCommon().absolutePath) else emptyArray()
val withStdlib = InTextDirectivesUtils.isDirectiveDefined(commonSrc.readText(), "WITH_STDLIB")
val optionalStdlibCommon = if (withStdlib) arrayOf("-cp", findStdlibCommon().absolutePath) else emptyArray()
val commonDest = File(tmpdir, "common").absolutePath
val jvmDest = File(tmpdir, "jvm").absolutePath.takeIf { jvmSrc != null }