Skip to content

Commit

Permalink
Update build.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
daviehh authored Apr 11, 2019
1 parent 2c44c5d commit b6c91e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import Compat.Libdl
import Compat.Sys

if Sys.isapple()
deps_file_str = open(joinpath(dirname(pathof(BinDeps)), "dependencies.jl")) do file
bindeps_path = VERSION >= v"0.7" ? joinpath(dirname(pathof(BinDeps)), "dependencies.jl") : joinpath(Pkg.dir("BinDeps"),"src/dependencies.jl")
deps_file_str = open(bindeps_path) do file
read(file, String)
end
if occursin("ZEval",pathof(BinDeps))
if occursin("ZEval",bindeps_path) || VERSION < v"0.7"
patched_dlclose = replace(deps_file_str, "Libdl.dlclose(h)" => "println(\"ignored: dlclose()\")")
include_string(BinDeps,patched_dlclose)
end
Expand Down

0 comments on commit b6c91e9

Please sign in to comment.