Gradle, native: Fix building platform libraries for MIPS

The sysroot for linux_mips doesn't contain one of platform
libs available for Linux (zlib). So we need to put def-files
to the K/N distribution on a per-target basis instead of putting
a single set of def-files for all targets of the same OS.

Corresponding change in the K/N repository:
https://github.com/JetBrains/kotlin-native/pull/4023

This patch take this change into account at the Gradle plugin side.
This commit is contained in:
Ilya Matveev
2020-03-26 13:32:42 +07:00
parent 872b140500
commit 172a45a637
3 changed files with 3 additions and 3 deletions
@@ -32,7 +32,7 @@ internal class PlatformLibrariesGenerator(val project: Project, val konanTarget:
File(distribution.platformLibs(konanTarget)).absoluteFile
private val defDirectory =
File(distribution.platformDefs(konanTarget.family)).absoluteFile
File(distribution.platformDefs(konanTarget)).absoluteFile
private val shouldBuildCaches: Boolean =
CacheBuilder.cacheWorksFor(konanTarget) && project.konanCacheKind != NativeCacheKind.NONE