File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -167,5 +167,7 @@ configure(subprojects.filter {
167
167
AuxBuildConfiguration .configure(rootProject)
168
168
rootProject.registerTopLevelDeployTask()
169
169
170
- // Report Kotlin compiler version when building project
171
- println (" Using Kotlin compiler version: ${KotlinCompilerVersion .VERSION } " )
170
+ if (isSnapshotTrainEnabled(rootProject)) {
171
+ // Report Kotlin compiler version when building project
172
+ println (" Using Kotlin compiler version: ${KotlinCompilerVersion .VERSION } " )
173
+ }
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ fun Project.configureCommunityBuildTweaks() {
103
103
}
104
104
}
105
105
106
- println (" Manifest of kotlin-compiler-embeddable.jar for coroutines" )
106
+ LOGGER .info (" Manifest of kotlin-compiler-embeddable.jar for coroutines" )
107
107
val coreProject = subprojects.single { it.name == coreModule }
108
108
configure(listOf (coreProject)) {
109
109
configurations.matching { it.name == " kotlinCompilerClasspath" }.configureEach {
@@ -187,7 +187,11 @@ fun KotlinCommonCompilerOptions.configureKotlinUserProject() {
187
187
* See <https://github.com/Kotlin/kotlinx.coroutines/pull/4392#issuecomment-2775630200>
188
188
*/
189
189
fun KotlinCommonCompilerOptions.addExtraCompilerFlags (project : Project ) {
190
- (project.rootProject.properties[" kotlin_additional_cli_options" ] as ? String )?.split(" " )?.forEach {
191
- if (it.isNotEmpty()) freeCompilerArgs.add(it)
190
+ val extraOptions = project.rootProject.properties[" kotlin_additional_cli_options" ] as ? String
191
+ if (extraOptions != null ) {
192
+ LOGGER .info(""" Adding extra compiler flags '$extraOptions ' for a compilation in the project $${project.name} """ )
193
+ extraOptions.split(" " )?.forEach {
194
+ if (it.isNotEmpty()) freeCompilerArgs.add(it)
195
+ }
192
196
}
193
- }
197
+ }
You can’t perform that action at this time.
0 commit comments