Skip to content

Commit 216cd0a

Browse files
committed
Support kotlin_additional_cli_options
1 parent 123615b commit 216cd0a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.gradle.kts

+8
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ allprojects {
8181
freeCompilerArgs.add("-Xjvm-default=disable")
8282
}
8383
}
84+
85+
val extraOpts = providers.gradleProperty("kotlin_additional_cli_options").orNull
86+
extraOpts?.split(' ')?.let { opts ->
87+
if (opts.isNotEmpty()) {
88+
logger.info("Adding additional compiler options: ${opts.joinToString(", ")}")
89+
compilerOptions.freeCompilerArgs.addAll(opts)
90+
}
91+
}
8492
}
8593
}
8694

0 commit comments

Comments
 (0)