Skip to content

Commit

Permalink
Leon now works again on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer authored and ravimad committed May 1, 2016
1 parent 6180419 commit da6264d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,18 @@ site.settings

site.sphinxSupport()

if(System.getProperty("sun.arch.data.model") == "64") {
unmanagedBase <<= baseDirectory { base => base / "unmanaged" / "64" }
val osName = Option(System.getProperty("os.name")).getOrElse("").toLowerCase()

val osArch = System.getProperty("sun.arch.data.model")

if(osName.indexOf("win") != -1) {
(unmanagedJars in Compile) += baseDirectory.value / "unmanaged" / s"scalaz3-win-$osArch.jar"
} else {
unmanagedBase <<= baseDirectory { base => base / "unmanaged" / "32" }
(unmanagedJars in Compile) += baseDirectory.value / "unmanaged" / s"scalaz3-unix-$osArch.jar"
}

unmanagedBase <<= baseDirectory { base => base / "unmanaged" / osArch }

resolvers ++= Seq(
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
Expand Down
File renamed without changes.
File renamed without changes.
Binary file added unmanaged/scalaz3-win-64.jar
Binary file not shown.

0 comments on commit da6264d

Please sign in to comment.