Command line interface

This commit is contained in:
Svyatoslav Kuzmich
2019-04-18 14:37:25 +03:00
parent 89500d776d
commit bb3b9a935f
7 changed files with 431 additions and 2 deletions
@@ -103,6 +103,18 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
// Advanced options
@Argument(value = "-Xir", description = "Use IR backend")
var irBackend: Boolean by FreezableVar(false)
@Argument(
value = "-Xir-produce-only",
valueDescription = "{ klib, js }",
description = "Type of output to produce. Overrides -meta-info argument."
)
var irProduceOnly: String? by NullableStringFreezableVar(null)
@GradleOption(DefaultValues.BooleanTrueDefault::class)
@Argument(value = "-Xtyped-arrays", description = "Translate primitive arrays to JS typed arrays")
var typedArrays: Boolean by FreezableVar(true)