Skip to content

Loading…

Add thrift support for win32 #5

Open
wants to merge 1 commit into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 14, 2011
  1. @simonratner

    Add thrift support for win32

    simonratner committed
This page is out of date. Refresh to see the latest.
View
BIN src/main/resources/thrift/thrift.win32
Binary file not shown.
View
2 src/main/scala/com/twitter/sbt/CompileThriftFinagle.scala
@@ -16,7 +16,9 @@ trait CompileThriftFinagle
private[this] val _thriftBin = CompileThriftFinagle.synchronized {
if (!cachedPath.isDefined) {
// TODO: we don't discriminate between versions here (which we need to..).
+ val windows = "(Windows.*)".r
val binPath = System.getProperty("os.name") match {
+ case windows(_) => "thrift.win32"
case "Mac OS X" => "thrift.osx10.6"
case "Linux" => System.getProperty("os.arch") match {
case "i386" => "thrift.linux32"
Something went wrong with that request. Please try again.