Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #27 from juanjux/fix/sync_dynload
Browse files Browse the repository at this point in the history
Synchronize the uncompression/loading of the native lib
  • Loading branch information
juanjux committed Oct 18, 2017
2 parents 8421d42 + dbb08e3 commit 8182430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
@@ -1,6 +1,6 @@
name := "bblfsh-client"
organization := "org.bblfsh"
version := "1.2.1"
version := "1.2.2"

scalaVersion := "2.11.11"
val libuastVersion = "v1.2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/org/bblfsh/client/libuast/Libuast.scala
Expand Up @@ -10,7 +10,7 @@ object Libuast {
var loaded = false

// Extract the native module from the jar
private def loadBinaryLib(name: String) = {
private def loadBinaryLib(name: String) = synchronized {
val tempDir = System.getProperty("java.io.tmpdir")
val ext = if (System.getProperty("os.name").toLowerCase == "mac os x") ".dylib" else ".so"
val fullLibName = name + ext
Expand Down

0 comments on commit 8182430

Please sign in to comment.