Skip to content

Commit

Permalink
show a bit more detail when finished precompiling (#55660)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Sep 4, 2024
1 parent b1b968e commit 2f0607f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion base/precompilation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,12 @@ function precompilepkgs(pkgs::Vector{String}=String[];
seconds_elapsed = round(Int, (time_ns() - time_start) / 1e9)
ndeps = count(values(was_recompiled))
if ndeps > 0 || !isempty(failed_deps) || (quick_exit && !isempty(std_outputs))
str = sprint() do iostr
str = sprint(context=io) do iostr
if !quick_exit
if fancyprint # replace the progress bar
what = isempty(requested_pkgs) ? "packages finished." : "$(join(requested_pkgs, ", ", " and ")) finished."
printpkgstyle(iostr, :Precompiling, what)
end
plural = length(configs) > 1 ? "dependency configurations" : ndeps == 1 ? "dependency" : "dependencies"
print(iostr, " $(ndeps) $(plural) successfully precompiled in $(seconds_elapsed) seconds")
if n_already_precomp > 0 || !isempty(circular_deps)
Expand Down

0 comments on commit 2f0607f

Please sign in to comment.