Added option to add compiler options for kotlinc compiler call in cin… (#3906)
This commit is contained in:
+2
@@ -61,6 +61,8 @@ open class CommonInteropArguments(val argParser: ArgParser) {
|
|||||||
description = "don't link unused libraries even explicitly specified").default(false)
|
description = "don't link unused libraries even explicitly specified").default(false)
|
||||||
val tempDir by argParser.option(ArgType.String, TEMP_DIR,
|
val tempDir by argParser.option(ArgType.String, TEMP_DIR,
|
||||||
description = "save temporary files to the given directory")
|
description = "save temporary files to the given directory")
|
||||||
|
val kotlincOption by argParser.option(ArgType.String, "Xkotlinc-option",
|
||||||
|
description = "additional kotlinc compiler option").multiple()
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val MODE_SOURCECODE = "sourcecode"
|
const val MODE_SOURCECODE = "sourcecode"
|
||||||
|
|||||||
@@ -67,7 +67,8 @@ fun invokeInterop(flavor: String, args: Array<String>): Array<String>? {
|
|||||||
repos.flatMap { listOf("-repo", it) } +
|
repos.flatMap { listOf("-repo", it) } +
|
||||||
(if (noDefaultLibs) arrayOf("-$NODEFAULTLIBS") else emptyArray()) +
|
(if (noDefaultLibs) arrayOf("-$NODEFAULTLIBS") else emptyArray()) +
|
||||||
(if (noEndorsedLibs) arrayOf("-$NOENDORSEDLIBS") else emptyArray()) +
|
(if (noEndorsedLibs) arrayOf("-$NOENDORSEDLIBS") else emptyArray()) +
|
||||||
(if (purgeUserLibs) arrayOf("-$PURGE_USER_LIBS") else emptyArray())
|
(if (purgeUserLibs) arrayOf("-$PURGE_USER_LIBS") else emptyArray()) +
|
||||||
|
arguments.kotlincOption
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user