From e002f07ff5ae8149622f4b3765407e534f5fe3f6 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Mon, 11 Mar 2024 13:48:42 +0100 Subject: [PATCH] [K/N][build] Fix distPlatformLibs Gradle task dependencies on Windows K/N distPlatformLibs Gradle task dependended on hostInstall and hostCache. The latter doesn't work (= has incorrect dependencies) on hosts that don't support compiler caches for the host target (i.e. Windows). As a result, running distPlatformLibs task on Windows didn't work, causing local test runs to fail. This commit fixes the problem by making distPlatformLibs depend on `"${hostName}PlatformLibs` instead, so it does the same as before but handles the non-caching hosts correctly. --- kotlin-native/build.gradle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kotlin-native/build.gradle b/kotlin-native/build.gradle index 0524b8119cd..3f5bfd41fbc 100644 --- a/kotlin-native/build.gradle +++ b/kotlin-native/build.gradle @@ -387,8 +387,7 @@ targetList.each { target -> } tasks.register("distPlatformLibs") { - dependsOn ':kotlin-native:platformLibs:hostInstall' - dependsOn ':kotlin-native:platformLibs:hostCache' + dependsOn("${hostName}PlatformLibs") } tasks.register("dist") {