[build][kotlin-build-gradle-plugin] bump version 0.0.25
- kotlin native versioning support - disable metadata - fixes of drop 0 maintanence clause - support for kotlin.native.enabled flag to switch on/off kotlin native build - add mode to version generatation to dump version to resourse file
This commit is contained in:
@@ -53,10 +53,8 @@ data class CompilerVersionImpl(
|
||||
append(major)
|
||||
append('.')
|
||||
append(minor)
|
||||
if (maintenance != 0) {
|
||||
append('.')
|
||||
append(maintenance)
|
||||
}
|
||||
append('.')
|
||||
append(maintenance)
|
||||
if (milestone != -1) {
|
||||
append("-M")
|
||||
append(milestone)
|
||||
|
||||
@@ -10,12 +10,15 @@ import org.jetbrains.kotlin.konan.file.*
|
||||
import java.lang.StringBuilder
|
||||
|
||||
fun <T> printMillisec(message: String, body: () -> T): T {
|
||||
val result: T
|
||||
val msec = measureTimeMillis {
|
||||
result = body()
|
||||
var msec = 0L
|
||||
try {
|
||||
msec = measureTimeMillis {
|
||||
return body()
|
||||
}
|
||||
} finally {
|
||||
println("$message: $msec msec")
|
||||
}
|
||||
println("$message: $msec msec")
|
||||
return result
|
||||
error("shouldn't happens")
|
||||
}
|
||||
|
||||
fun profile(message: String, body: () -> Unit) = profileIf(
|
||||
|
||||
Reference in New Issue
Block a user