Skip to content

Commit 6452661

Browse files
Use DYLD_LIBRARY_PATH on Mac.
1 parent ef444a5 commit 6452661

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ if Sys.iswindows()
2525
# Place `julia` in PATH. It is assumed that this makes `libjulia`
2626
# also available from PATH.
2727
ENV["PATH"] = string(Sys.BINDIR, ";", ENV["PATH"])
28+
elseif Sys.isapple()
29+
# Make `libjulia` available in LD_LIBRARY_PATH.
30+
libdir = dirname(abspath(Libdl.dlpath("libjulia")))
31+
ENV["DYLD_LIBRARY_PATH"] = string(libdir, ":", get(ENV, "DYLD_LIBRARY_PATH", ""))
2832
else
2933
# Make `libjulia` available in LD_LIBRARY_PATH.
3034
libdir = dirname(abspath(Libdl.dlpath("libjulia")))

0 commit comments

Comments
 (0)