Skip to content

Commit

Permalink
Use DYLD_LIBRARY_PATH on Mac.
Browse files Browse the repository at this point in the history
  • Loading branch information
GunnarFarneback committed Jun 15, 2023
1 parent ef444a5 commit 6452661
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ if Sys.iswindows()
# Place `julia` in PATH. It is assumed that this makes `libjulia`
# also available from PATH.
ENV["PATH"] = string(Sys.BINDIR, ";", ENV["PATH"])
elseif Sys.isapple()
# Make `libjulia` available in LD_LIBRARY_PATH.
libdir = dirname(abspath(Libdl.dlpath("libjulia")))
ENV["DYLD_LIBRARY_PATH"] = string(libdir, ":", get(ENV, "DYLD_LIBRARY_PATH", ""))
else
# Make `libjulia` available in LD_LIBRARY_PATH.
libdir = dirname(abspath(Libdl.dlpath("libjulia")))
Expand Down

0 comments on commit 6452661

Please sign in to comment.