[gradle-native-plugin] Build static caches instead of dynamic

This commit is contained in:
Igor Chevdar
2019-12-17 12:24:46 +03:00
parent b6de3c2fcc
commit 6f16d02920
@@ -728,7 +728,7 @@ class CacheBuilder(val project: Project, val binary: NativeBinary) {
for (library in sortedLibraries) {
project.logger.info("Compiling ${library.uniqueName} to cache")
val args = mutableListOf(
"-p", "dynamic_cache",
"-p", "static_cache",
"-target", target
)
if (debuggable)
@@ -769,7 +769,7 @@ class CacheBuilder(val project: Project, val binary: NativeBinary) {
ensureCompilerProvidedLibPrecached(dependency.path, platformLibs, visitedLibs)
project.logger.info("Compiling $platformLibName (${visitedLibs.size}/${platformLibs.size}) to cache")
val args = mutableListOf(
"-p", "dynamic_cache",
"-p", "static_cache",
"-target", target
)
if (debuggable)