We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77c7a5f commit 31b17a3Copy full SHA for 31b17a3
src/main/scala/ai/kien/python/Python.scala
@@ -78,7 +78,14 @@ class Python private[python] (
78
*
79
* `pythonX.Y-config --ldflags --embed` for `python` 3.8+
80
*/
81
- lazy val ldflags: Try[Seq[String]] = for {
+ lazy val ldflags: Try[Seq[String]] = if (isWin) ldflagsWin else ldflagsNix
82
+
83
+ lazy val ldflagsWin = for {
84
+ nativeLibraryPaths <- nativeLibraryPaths
85
+ nativeLibrary <- nativeLibrary
86
+ } yield ("-l" + nativeLibrary) +: nativeLibraryPaths.map("-L" + _)
87
88
+ lazy val ldflagsNix: Try[Seq[String]] = for {
89
rawLdflags <- rawLdflags
90
nativeLibraryPaths <- nativeLibraryPaths
91
libPathFlags = nativeLibraryPaths.map("-L" + _)
0 commit comments