Rebuild all kotlin files when EAP flag is changed

This commit is contained in:
Alexey Tsvetkov
2017-01-26 13:38:27 +03:00
parent 4a63e47aa0
commit b9dbe69232
8 changed files with 115 additions and 11 deletions
@@ -110,6 +110,12 @@ class DeserializedDescriptorResolver {
private val KOTLIN_1_1_EAP_METADATA_VERSION = JvmMetadataVersion(1, 1, 2)
var IS_PRE_RELEASE = KotlinCompilerVersion.IS_PRE_RELEASE
get() {
val testOverrideValue = System.getProperty(TEST_IS_PRE_RELEASE_SYSTEM_PROPERTY)
return testOverrideValue?.toBoolean() ?: field
}
@Deprecated("Should only be used in tests") set
const val TEST_IS_PRE_RELEASE_SYSTEM_PROPERTY = "kotlin.test.is.pre.release"
}
}