Skip to content

Commit

Permalink
Add support for Apple Silicon (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Aug 2, 2023
1 parent 87f8884 commit 3032aa4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/PATHSolver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function __init__()
platform = if Sys.iswindows()
"windows"
elseif Sys.isapple()
"macos"
Sys.ARCH == :aarch64 ? "silicon" : "macos"
elseif Sys.islinux()
"linux"
else
Expand All @@ -28,6 +28,10 @@ function __init__()
"libpath50.dylib",
"8787de93d21f49a46146ebe2ef5844d1c20a80f934a85f60164f9ddc670412f8",
),
"silicon" => (
"libpath50.silicon.dylib",
"4e667615180565062013ab50a3968bbeddf3e510a9cdbfc27aa685152742b637",
),
"linux" => (
"libpath50.so",
"8c36baaea0952729788ec8d964253305b04b0289a1d74ca5606862c9ddb8f2fd",
Expand All @@ -51,6 +55,10 @@ function __init__()
"liblusol.dylib",
"52d631fd3d753581c62d5b4b636e9cb3f8cc822738fe34c6879443d5b5092f12",
),
"silicon" => (
"liblusol.silicon.dylib",
"24113f8730cdaa567c70eee36209720e37ade6080dc62bfd5ee873da0357b88d",
),
"linux" => (
"liblusol.so",
"ca87167853cdac9d4697a51a588d13ed9a7c093219743efa1d250cb62ac3dcb7",
Expand Down

2 comments on commit 3032aa4

@forrestlaine
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hooray!

@odow
Copy link
Collaborator Author

@odow odow commented on 3032aa4 Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Let me know if you have any problems with it.

Please sign in to comment.