Skip to content

Commit 772d91c

Browse files
author
Gaika
authored
Merge pull request #257 from xukai92/kx/fix-af_lib
Handle macOS for `af_lib`
2 parents 329170a + 12b2906 commit 772d91c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function show(io::IO, m::MIME"text/plain", a::AFArray)
5252
print(io, "AFArray: "); show(io, m, toa(a))
5353
end
5454

55-
global const af_lib = Sys.isunix() ? "libaf.so.3" : "af"
55+
global const af_lib = Sys.isunix() ? (Sys.isapple() ? "libaf.3" : "libaf.so.3") : "af"
5656
global const bcast = Ref{Bool}(false)
5757

5858
function __init__()

0 commit comments

Comments
 (0)