Skip to content

Commit

Permalink
Fix compilecache-like functionality on 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Sep 10, 2019
1 parent 1b7ca62 commit 492e3d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/LLVM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ function __init__()
if length(libllvm_paths) > 1
# NOTE: this still allows switching to a non-USE_LLVM_SHLIB version, but
# there's no way to detect that since the new libLLVM is loaded before this...
cachefile = Base.compilecache(Base.PkgId(LLVM))
cachefile = if VERSION >= v"1.3-"
Base.compilecache_path(Base.PkgId(LLVM))
else
abspath(DEPOT_PATH[1], Base.cache_file_entry(Base.PkgId(LLVM)))
end
rm(cachefile)
error("Your set-up changed, and LLVM.jl needs to be reconfigured. Please load the package again.")
end
Expand Down

0 comments on commit 492e3d4

Please sign in to comment.