Build compiler, plugin & stdlib with constructor call normalization

Required as a workaround for Proguard bug
https://sourceforge.net/p/proguard/bugs/664/

When processing bytecode generated by Kotlin compiler for constructor
call with stack spilling during arguments evaluation, ProGuard performs
an equivalent transformation for the bytecode, but emits invalid stack
frame information.
In JVM 1.6, such invalid stack frames are ignored and re-evaluated by
JVM during bytecode verification.
In JVM 1.8, such invalid stack frames cause VerifyError.
This commit is contained in:
Dmitry Petrov
2017-10-11 14:46:15 +03:00
parent 13880b18ea
commit 75ad20f823
11 changed files with 12 additions and 5 deletions
@@ -38,6 +38,7 @@ dist {
compileKotlin {
kotlinOptions.freeCompilerArgs = [
"-Xallow-kotlin-package",
"-Xnormalize-constructor-calls=enable",
"-module-name", project.name
]
}