File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ private val LOGGER: Logger = Logger.getLogger("Kotlin settings logger")
25
25
* (see [configureCommunityBuildTweaks]).
26
26
*
27
27
* DO NOT change the name of these properties without adapting the kotlinx.train build chain.
28
- */
28
+ */
29
29
30
30
/* *
31
31
* Should be used for running against of non-released Kotlin compiler on a system test level.
@@ -201,11 +201,13 @@ fun KotlinCommonCompilerOptions.configureKotlinUserProject() {
201
201
* See <https://github.com/Kotlin/kotlinx.coroutines/pull/4392#issuecomment-2775630200>
202
202
*/
203
203
fun KotlinCommonCompilerOptions.addExtraCompilerFlags (project : Project ) {
204
- val extraOptions = project.providers.gradleProperty(" kotlin_additional_cli_options" ).orNull
205
- if (extraOptions != null ) {
206
- LOGGER .info(""" Adding extra compiler flags '$extraOptions ' for a compilation in the project $${project.name} """ )
207
- extraOptions.split(" " ).forEach {
208
- if (it.isNotEmpty()) freeCompilerArgs.add(it)
204
+ val extraOptions = project.providers.gradleProperty(" kotlin_additional_cli_options" )
205
+ .orNull?.let { options ->
206
+ options.removeSurrounding(" \" " ).split(" " ).filter { it.isNotBlank() }
209
207
}
208
+ extraOptions?.forEach { option ->
209
+ freeCompilerArgs.add(option)
210
+ LOGGER .info(""" Adding extra compiler flags '$extraOptions ' for a compilation in the project $${project.name} """ )
210
211
}
211
212
}
213
+
You can’t perform that action at this time.
0 commit comments