diff --git a/kotlin-native/build.gradle b/kotlin-native/build.gradle index d9679d0e999..5ffd314ff8d 100644 --- a/kotlin-native/build.gradle +++ b/kotlin-native/build.gradle @@ -413,6 +413,14 @@ def endorsedLibsCopyTask = task("crossDistEndorsedLibrariesCopy", type: Copy) { targetList.each { target -> task("${target}CrossDistStdlib", type: Copy) { dependsOn ":kotlin-native:runtime:${target}Stdlib" + // TODO: add explicit dependency on host task with IR klib stdlib parts + // As for now it is possibly to build up distribution from the tc-dist to crossdist + // by request of tests that need cross-targets or platform libs. It may create undesired + // issues with overwriting the file being used by the concurrent build/test. + // This building (by request) should be turned off when this to-do is fixed. +// if (target != hostName) { +// dependsOn ":kotlin-native:${hostName}CrossDistStdlib" +// } destinationDir project.file("$distDir/$stdlib")