[Gradle, JS] Flags with producing unzipped klib is by default

This commit is contained in:
Ilya Goncharov
2020-01-21 14:27:09 +03:00
parent b37c2a05fd
commit f169c8ea24
2 changed files with 7 additions and 4 deletions
@@ -57,11 +57,11 @@ abstract class KotlinJsIrSubTarget(
} }
override fun produceKotlinLibrary() { override fun produceKotlinLibrary() {
produceByFlags(PRODUCE_UNZIPPED_KLIB) produceByFlags()
} }
override fun produceJs() { override fun produceJs() {
produceByFlags(PRODUCE_UNZIPPED_KLIB) produceByFlags()
configureMain() configureMain()
} }
@@ -73,7 +73,7 @@ abstract class KotlinJsIrSubTarget(
.matching { it.name == KotlinCompilation.TEST_COMPILATION_NAME } .matching { it.name == KotlinCompilation.TEST_COMPILATION_NAME }
.all { .all {
it.kotlinOptions { it.kotlinOptions {
freeCompilerArgs += listOf(PRODUCE_UNZIPPED_KLIB, PRODUCE_JS) freeCompilerArgs += PRODUCE_JS
} }
} }
@@ -61,7 +61,10 @@ open class KotlinJsIrTargetConfigurator(kotlinPluginVersion: String) :
it.compileKotlinTask.kotlinOptions { it.compileKotlinTask.kotlinOptions {
configureOptions() configureOptions()
freeCompilerArgs += DISABLE_PRE_IR freeCompilerArgs += listOf(
DISABLE_PRE_IR,
PRODUCE_UNZIPPED_KLIB
)
} }
it.productionLinkTask.configure() it.productionLinkTask.configure()