Write flags to .kotlin_module files since metadata version 1.4

This value will be used for flags like pre-release (KT-21256) and other
similar info
This commit is contained in:
Alexander Udalov
2018-09-06 22:18:15 +03:00
parent b8eb804774
commit 8c942752e8
5 changed files with 17 additions and 5 deletions
@@ -135,7 +135,7 @@ open class MetadataSerializer(
for (table in packageTable.values) {
table.addTo(this)
}
}.build().serializeToByteArray(JvmMetadataVersion.INSTANCE.toArray()) // TODO: use another version here, not JVM
}.build().serializeToByteArray(JvmMetadataVersion.INSTANCE, 0) // TODO: use another version here, not JVM
// TODO: also, use CommonConfigurationKeys.METADATA_VERSION if needed
kotlinModuleFile.parentFile.mkdirs()