Skip to content

Commit

Permalink
Fix macos extraction
Browse files Browse the repository at this point in the history
Signed-off-by: Martmists <martmists@gmail.com>
  • Loading branch information
Martmists-GH committed Jun 1, 2024
1 parent 8d812a0 commit da5f9a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kpy-library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ kotlin {

KonanTarget.LINUX_X64 -> {
includeDirs(outDir.resolve("python/include/python${pythonVersion.str}"))
linkerOpts("-L${outDir.resolve("python/lib").absolutePath} -lpython3 -lresolv")
linkerOpts("-L${outDir.resolve("python/lib").absolutePath} -lpython3")
}

KonanTarget.MACOS_X64 -> {
includeDirs(outDir.resolve("python/include/python${pythonVersion.str}"))
linkerOpts("-L${outDir.resolve("python/lib").absolutePath} -lpython3")
}

else -> throw IllegalArgumentException("Unsupported target: $targetName")
Expand Down

0 comments on commit da5f9a3

Please sign in to comment.