[K/JS] Remove an internal system property and replace it with the new compiler flag
This commit is contained in:
+1
-3
@@ -168,9 +168,7 @@ abstract class AbstractJsLookupTrackerTest : AbstractLookupTrackerTest() {
|
||||
libraries = libPaths.joinToString(File.pathSeparator)
|
||||
reportOutputFiles = true
|
||||
freeArgs = filesToCompile.map { it.canonicalPath }
|
||||
useDeprecatedLegacyCompiler = true
|
||||
// TODO: It will be deleted after all of our internal vendors will use the new Kotlin/JS compiler
|
||||
CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true"
|
||||
forceDeprecatedLegacyCompilerUsage = true
|
||||
}
|
||||
configureAdditionalArgs(args)
|
||||
return runJSCompiler(args, env)
|
||||
|
||||
-1
@@ -37,7 +37,6 @@ abstract class BaseKotlinJpsBuildTestCase : JpsBuildTestCase() {
|
||||
override fun setUp() {
|
||||
super.setUp()
|
||||
System.setProperty("kotlin.jps.tests", "true")
|
||||
CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true"
|
||||
}
|
||||
|
||||
override fun shouldRunTest(): Boolean {
|
||||
|
||||
+1
-3
@@ -91,9 +91,7 @@ abstract class KotlinJpsBuildTestBase : AbstractKotlinJpsBuildTestCase() {
|
||||
myProject.modules.forEach {
|
||||
val facet = KotlinFacetSettings()
|
||||
facet.compilerArguments = K2JSCompilerArguments().apply {
|
||||
useDeprecatedLegacyCompiler = true
|
||||
// TODO: It will be deleted after all of our internal vendors will use the new Kotlin/JS compiler
|
||||
CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true"
|
||||
forceDeprecatedLegacyCompilerUsage = true
|
||||
}
|
||||
facet.targetPlatform = JsPlatforms.defaultJsPlatform
|
||||
|
||||
|
||||
+1
-1
@@ -264,7 +264,7 @@ class ModulesTxtBuilder {
|
||||
"js" -> settings.compilerArguments =
|
||||
K2JSCompilerArguments().also {
|
||||
settings.targetPlatform = JsPlatforms.defaultJsPlatform
|
||||
it.useDeprecatedLegacyCompiler = true
|
||||
it.forceDeprecatedLegacyCompilerUsage = true
|
||||
}
|
||||
"native" -> settings.compilerArguments =
|
||||
FakeK2NativeCompilerArguments().also { settings.targetPlatform = NativePlatforms.unspecifiedNativePlatform }
|
||||
|
||||
+1
-3
@@ -51,9 +51,7 @@ abstract class AbstractJsProtoComparisonTest : AbstractProtoComparisonTest<Proto
|
||||
metaInfo = true
|
||||
main = K2JsArgumentConstants.NO_CALL
|
||||
freeArgs = ktFiles
|
||||
useDeprecatedLegacyCompiler = true
|
||||
// TODO: It will be deleted after all of our internal vendors will use the new Kotlin/JS compiler
|
||||
CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true"
|
||||
forceDeprecatedLegacyCompilerUsage = true
|
||||
}
|
||||
|
||||
val env = createTestingCompilerEnvironment(messageCollector, outputItemsCollector, services)
|
||||
|
||||
Reference in New Issue
Block a user