From b6c91e91c5e57f2a38722400295e979320be2727 Mon Sep 17 00:00:00 2001 From: daviehh <25255906+daviehh@users.noreply.github.com> Date: Thu, 11 Apr 2019 10:04:10 -0400 Subject: [PATCH] Update build.jl --- deps/build.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deps/build.jl b/deps/build.jl index 6b750f3..41875bb 100644 --- a/deps/build.jl +++ b/deps/build.jl @@ -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