[K/N] Enable caches for iosArm64 and linuxX64 by default

This commit is contained in:
Sergey Bogolepov
2021-08-10 14:39:58 +07:00
committed by Space
parent 5455800de4
commit e159392d22
@@ -1066,8 +1066,14 @@ internal class CacheBuilder(
// but naïve implementation makes build slower because it makes reading of konan.properties significantly more frequent. // but naïve implementation makes build slower because it makes reading of konan.properties significantly more frequent.
// One possible solution is to use [Gradle Build service](https://docs.gradle.org/current/userguide/build_services.html). // One possible solution is to use [Gradle Build service](https://docs.gradle.org/current/userguide/build_services.html).
// Tracking issue: https://youtrack.jetbrains.com/issue/KT-47529 // Tracking issue: https://youtrack.jetbrains.com/issue/KT-47529
private val targetsWithStableStaticCaches = private val targetsWithStableStaticCaches = setOf(
setOf(KonanTarget.IOS_X64, KonanTarget.MACOS_X64, KonanTarget.IOS_SIMULATOR_ARM64, KonanTarget.MACOS_ARM64) KonanTarget.IOS_X64,
KonanTarget.MACOS_X64,
KonanTarget.IOS_SIMULATOR_ARM64,
KonanTarget.MACOS_ARM64,
KonanTarget.IOS_ARM64,
KonanTarget.LINUX_X64
)
internal fun cacheWorksFor(target: KonanTarget, project: Project) = internal fun cacheWorksFor(target: KonanTarget, project: Project) =
target in getCacheableTargets(project) target in getCacheableTargets(project)