[native-gradle-plugin] Disabled cache building for iOS devices
This commit is contained in:
+4
-1
@@ -794,8 +794,11 @@ class CacheBuilder(val project: Project, val binary: NativeBinary) {
|
|||||||
ensureCompilerProvidedLibPrecached(platformLibName, platformLibs, visitedLibs)
|
ensureCompilerProvidedLibPrecached(platformLibName, platformLibs, visitedLibs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private val KonanTarget.cacheWorks
|
||||||
|
get() = this == KonanTarget.IOS_X64 || this == KonanTarget.MACOS_X64
|
||||||
|
|
||||||
fun buildCompilerArgs(): List<String> = mutableListOf<String>().apply {
|
fun buildCompilerArgs(): List<String> = mutableListOf<String>().apply {
|
||||||
if (konanCacheKind != NativeCacheKind.NONE && !optimized && compilation.konanTarget.family.isAppleFamily) {
|
if (konanCacheKind != NativeCacheKind.NONE && !optimized && compilation.konanTarget.cacheWorks) {
|
||||||
rootCacheDirectory.mkdirs()
|
rootCacheDirectory.mkdirs()
|
||||||
ensureCompilerProvidedLibsPrecached()
|
ensureCompilerProvidedLibsPrecached()
|
||||||
add("-Xcache-directory=${rootCacheDirectory.absolutePath}")
|
add("-Xcache-directory=${rootCacheDirectory.absolutePath}")
|
||||||
|
|||||||
Reference in New Issue
Block a user