Skip to content

Commit

Permalink
remove recompilation dependency check in Pkg.precompile (#3696)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
(cherry picked from commit debc38b)
  • Loading branch information
KristofferC committed Nov 13, 2023
1 parent ffe4615 commit 0028885
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/API.jl
Expand Up @@ -1449,10 +1449,8 @@ function precompile(ctx::Context, pkgs::Vector{PackageSpec}; internal_call::Bool
queued = precomp_queued(pkgspec)

circular = pkg in circular_deps
# skip stale checking and force compilation if any dep was recompiled in this session
any_dep_recompiled = any(map(dep->was_recompiled[dep], deps))
is_stale = true
if !circular && (queued || any_dep_recompiled || (!suspended && (is_stale = _is_stale!(stale_cache, paths, sourcepath))))
if !circular && (queued || (!suspended && (is_stale = _is_stale!(stale_cache, paths, sourcepath))))
Base.acquire(parallel_limiter)
is_direct_dep = pkg in direct_deps
iob = IOBuffer()
Expand Down

0 comments on commit 0028885

Please sign in to comment.