Skip to content

Commit 19cf293

Browse files
committed
Fix cahe rejection logic
1 parent 264f4a4 commit 19cf293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/loading.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3121,7 +3121,7 @@ end
31213121
# point to an unreadable directory, make sure we can `stat` the
31223122
# file before comparing it with `modpath`.
31233123
isreadable = iszero(@ccall jl_fs_access(stdlib_path::Cstring, 0x04::Cint)::Cint)
3124-
if isreadable && !samefile(stdlib_path, modpath)
3124+
if !(isreadable && samefile(stdlib_path, modpath))
31253125
@debug "Rejecting cache file $cachefile because it is for file $(includes[1].filename) not file $modpath"
31263126
return true # cache file was compiled from a different path
31273127
end

0 commit comments

Comments
 (0)