[K/JS] Introduce the ability to consume platform-specific cli arguments inside the main function ^KT-16981 Fixed
This commit is contained in:
+1
@@ -57,6 +57,7 @@ fun copyK2JSCompilerArguments(from: K2JSCompilerArguments, to: K2JSCompilerArgum
|
||||
to.outputPrefix = from.outputPrefix
|
||||
to.partialLinkageLogLevel = from.partialLinkageLogLevel
|
||||
to.partialLinkageMode = from.partialLinkageMode
|
||||
to.platformArgumentsProviderJsExpression = from.platformArgumentsProviderJsExpression
|
||||
to.sourceMap = from.sourceMap
|
||||
to.sourceMapBaseDirs = from.sourceMapBaseDirs
|
||||
to.sourceMapEmbedSources = from.sourceMapEmbedSources
|
||||
|
||||
+10
@@ -494,6 +494,16 @@ In combination with '-meta-info', this generates both IR and pre-IR versions of
|
||||
field = value
|
||||
}
|
||||
|
||||
@Argument(
|
||||
value = "-Xplatform-arguments-in-main-function",
|
||||
description = "JS expression that will be executed in runtime and be put as an Array<String> parameter of the main function"
|
||||
)
|
||||
var platformArgumentsProviderJsExpression: String? = null
|
||||
set(value) {
|
||||
checkFrozen()
|
||||
field = value
|
||||
}
|
||||
|
||||
@GradleOption(
|
||||
value = DefaultValue.BOOLEAN_TRUE_DEFAULT,
|
||||
gradleInputType = GradleInputTypes.INPUT,
|
||||
|
||||
Reference in New Issue
Block a user