From 8068dee811b4a60c52753c9ff532bae1769eed3b Mon Sep 17 00:00:00 2001 From: Sergey Bogolepov Date: Tue, 9 Feb 2021 12:46:39 +0700 Subject: [PATCH] Show ABI compatibility tasks even if anotherDistro is not provided. --- kotlin-native/build.gradle | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/kotlin-native/build.gradle b/kotlin-native/build.gradle index bbb6a03c0ed..af88a956fbc 100644 --- a/kotlin-native/build.gradle +++ b/kotlin-native/build.gradle @@ -790,22 +790,24 @@ task compdb(type: Copy) { into "$projectDir" } -if (project.hasProperty("anotherDistro")) { - targetList.each { targetName -> - task "${targetName}CheckPlatformAbiCompatibility"(type: CompareDistributionSignatures) { - dependsOn "${targetName}PlatformLibs" +targetList.each { targetName -> + task "${targetName}CheckPlatformAbiCompatibility"(type: CompareDistributionSignatures) { + dependsOn "${targetName}PlatformLibs" - libraries = new CompareDistributionSignatures.Libraries.Platform(targetName) + libraries = new CompareDistributionSignatures.Libraries.Platform(targetName) + if (project.hasProperty("anotherDistro")) { oldDistribution = project.findProperty("anotherDistro") - onMismatchMode = CompareDistributionSignatures.OnMismatchMode.FAIL } - } - - task "checkStdlibAbiCompatibility"(type: CompareDistributionSignatures) { - dependsOn "distRuntime" - - libraries = CompareDistributionSignatures.Libraries.Standard.INSTANCE - oldDistribution = project.findProperty("anotherDistro") onMismatchMode = CompareDistributionSignatures.OnMismatchMode.FAIL } } + +task "checkStdlibAbiCompatibility"(type: CompareDistributionSignatures) { + dependsOn "distRuntime" + + libraries = CompareDistributionSignatures.Libraries.Standard.INSTANCE + if (project.hasProperty("anotherDistro")) { + oldDistribution = project.findProperty("anotherDistro") + } + onMismatchMode = CompareDistributionSignatures.OnMismatchMode.FAIL +}