JS: support -Xskip-metadata-version-check for incompatible ABI libraries

Allow the compiler to read such libraries without any errors, at the
risk of crashing with an exception.

Also fix a minor bug in the diagnostic message in LibrarySourcesConfig
and in the corresponding test in KotlinJpsBuildTest

Original commit: bf90cb5cc0
This commit is contained in:
Alexander Udalov
2017-03-16 15:12:06 +03:00
parent 7841af6c57
commit ff0438b38a
@@ -393,7 +393,7 @@ class KotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() {
val warnings = buildResult.getMessages(BuildMessage.Kind.WARNING)
assertEquals("Warning about duplicate module definition: $warnings", 1, warnings.size)
assertEquals("Module \"srcAndTests\" is defined in more, than one file", warnings[0].messageText)
assertEquals("Module \"srcAndTests\" is defined in more than one file", warnings[0].messageText)
}
fun testKotlinJavaScriptProjectWithTwoSrcModuleDependency() {