Skip to content

Commit 492e3d4

Browse files
committed
Fix compilecache-like functionality on 1.3
1 parent 1b7ca62 commit 492e3d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/LLVM.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ function __init__()
137137
if length(libllvm_paths) > 1
138138
# NOTE: this still allows switching to a non-USE_LLVM_SHLIB version, but
139139
# there's no way to detect that since the new libLLVM is loaded before this...
140-
cachefile = Base.compilecache(Base.PkgId(LLVM))
140+
cachefile = if VERSION >= v"1.3-"
141+
Base.compilecache_path(Base.PkgId(LLVM))
142+
else
143+
abspath(DEPOT_PATH[1], Base.cache_file_entry(Base.PkgId(LLVM)))
144+
end
141145
rm(cachefile)
142146
error("Your set-up changed, and LLVM.jl needs to be reconfigured. Please load the package again.")
143147
end

0 commit comments

Comments
 (0)