[K/N][build] Don't rewrite same stdlib parts during copy

This commit is contained in:
Pavel Punegov
2022-03-09 19:11:07 +03:00
committed by Space
parent 2a1d5d3e0a
commit ce5094e586
+8 -1
View File
@@ -417,7 +417,14 @@ targetList.each { target ->
destinationDir project.file("$distDir/$stdlib")
from(project(':kotlin-native:runtime').file("build/${target}Stdlib")) {
include('**')
if (target == hostName) {
include('**')
} else {
// We don't want to rewrite stdlib parts as they are the same and may be already used
// by the other build phases like caching or endorsed libraries.
include('*/targets/**')
include('*/manifest')
}
eachFile {
if (name == 'manifest') {
def existingManifest = file("$destinationDir/$path")