Skip to content

Commit 3fa9be4

Browse files
authored
Use compilecache_path (#371)
Thanks!
1 parent 667a177 commit 3fa9be4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/MPI.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ function __init__()
7272

7373
if MPI_LIBRARY_VERSION_STRING != Get_library_version()
7474
# MPI library has changed, invalidate cache
75-
cachefile = Base.compilecache(Base.PkgId(MPI))
76-
rm(cachefile)
75+
rm(Base.compilecache_path(Base.PkgId(MPI)), force = true)
7776
# TODO: figure out if we can reload package without erroring
7877
# though that would probably trigger a race condition
7978
error("MPI library has changed, please restart Julia")

0 commit comments

Comments
 (0)