Add internal compiler argument to change metadata version

Will be used in tests to check how we behave on binaries produced by a
"future" compiler
This commit is contained in:
Alexander Udalov
2018-07-17 19:59:09 +02:00
parent cfc0f5e453
commit 871b896a21
29 changed files with 210 additions and 133 deletions
@@ -65,5 +65,11 @@ abstract class BinaryVersion(private vararg val numbers: Int) {
companion object {
private const val UNKNOWN = -1
@JvmStatic
fun parseVersionArray(string: String): IntArray? =
string.split(".")
.map { part -> part.toIntOrNull() ?: return null }
.toTypedArray().toIntArray()
}
}