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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user