From b78c7b5f4e0041a3ee9264d4f36038aadbf21c72 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Sat, 21 Dec 2019 10:55:47 +0300 Subject: [PATCH] Don't include platform lib caches into the restricted distribution --- build.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index fe2c4fb19d7..803fc7b71f8 100644 --- a/build.gradle +++ b/build.gradle @@ -516,8 +516,14 @@ task bundleRestricted(type: Tar) { exclude 'dependencies' exclude 'klib/testLibrary' platformManager.targetValues.each { target -> - if (PlatformInfo.isAppleTarget(target)) + if (PlatformInfo.isAppleTarget(target)) { exclude "klib/platform/${target.name}" + exclude { + // Exclude platform libraries caches too. + !it.isDirectory && it.relativePath.startsWithAny("klib/cache/${target.name}-g") && + it.name != "libstdlib-cache.a" + } + } } exclude '**/xcode_license.pdf' into baseName