Skip to content

Commit

Permalink
Workaround renaming of JULIA_HOME (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan authored Dec 21, 2017
1 parent 742ee7e commit 803ca79
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/BinDeps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ module BinDeps

using Compat

if VERSION >= v"0.7.0-DEV.3073"
const _HOME = Sys.BINDIR
else
const _HOME = JULIA_HOME
end

export @build_steps, find_library, download_cmd, unpack_cmd,
Choice, Choices, CCompile, FileDownloader, FileRule,
ChangeDirectory, FileUnpacker, prepare_src,
Expand Down Expand Up @@ -110,7 +116,7 @@ if Sys.KERNEL == :FreeBSD
end

if Compat.Sys.iswindows()
const exe7z = joinpath(JULIA_HOME, "7z.exe")
const exe7z = joinpath(_HOME, "7z.exe")

function unpack_cmd(file,directory,extension,secondary_extension)
if ((extension == ".Z" || extension == ".gz" || extension == ".xz" || extension == ".bz2") &&
Expand Down

0 comments on commit 803ca79

Please sign in to comment.