Skip to content

Commit

Permalink
Merge pull request #49 from clulab/kwalcock/aarch64
Browse files Browse the repository at this point in the history
Support for aarch64 Linux
  • Loading branch information
kwalcock authored Oct 3, 2023
2 parents 7542fe9 + 416d1b2 commit 7790df1
Show file tree
Hide file tree
Showing 8 changed files with 224 additions and 212 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
+ **0.5.0** - Support Linux on aarch64
+ **0.5.0** - Isolate dependencies on models to the apps subproject
+ **0.4.0** - Account for maxTokens
+ **0.3.0** - Include some tokenizers as resources and only fall back to network if necessary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ object LibraryLoader {
else text

def isMac: Boolean = System.getProperty("os.name").startsWith("Mac ")

def isWin: Boolean = System.getProperty("os.name").startsWith("Win")

def isApple: Boolean = System.getProperty("os.arch") == "aarch64"

Expand All @@ -41,7 +43,7 @@ object LibraryLoader {
// The Mac reports a libname ending with .dylib, but Java needs .jnilib instead.
val jniName = replaceSuffix(libName, ".dylib", ".jnilib");
val resourceName =
if (!isMac) jniName
if (isWin) jniName
else if (isApple) "apple-" + jniName
else "intel-" + jniName

Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified tokenizer/src/main/resources/rust_tokenizer.dll
Binary file not shown.
Loading

0 comments on commit 7790df1

Please sign in to comment.