Skip to content

Commit

Permalink
Update build.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
musm committed Jun 27, 2017
1 parent 1d61ea9 commit 55e0aff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions deps/build.jl
Expand Up @@ -8,19 +8,18 @@ const MAX_VERSION = v"7.0-" # First unsupported version

# Set the environment variables required by some providers during the pre-init version validation.
function check_version(lib, handle)
if (is_apple() && startswith(lib, homebrew_prefix))
if is_apple() && startswith(lib, homebrew_prefix)
version = withenv(homebrew_envs...) do
preinit_libversion(lib, handle)
end
elseif (is_windows() && startswith(lib, magick_libdir))
elseif is_windows() && startswith(lib, magick_libdir)
version = withenv(windows_binary_envs...) do
preinit_libversion(lib, handle)
end
else
version = preinit_libversion(lib, handle)
end

return version >= MIN_VERSION && version < MAX_VERSION
return MIN_VERSION version < MAX_VERSION
end

function preinit_libversion(lib, handle)
Expand Down

0 comments on commit 55e0aff

Please sign in to comment.