Skip to content

Commit b133bd4

Browse files
show a bit more detail when finished precompiling
1 parent 34b81fb commit b133bd4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

base/precompilation.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,8 +919,12 @@ function precompilepkgs(pkgs::Vector{String}=String[];
919919
seconds_elapsed = round(Int, (time_ns() - time_start) / 1e9)
920920
ndeps = count(values(was_recompiled))
921921
if ndeps > 0 || !isempty(failed_deps) || (quick_exit && !isempty(std_outputs))
922-
str = sprint() do iostr
922+
str = sprint(context=io) do iostr
923923
if !quick_exit
924+
if fancyprint # replace the progress bar
925+
what = isempty(requested_pkgs) ? "packages finished." : "$(join(requested_pkgs, ", ", " and ")) finished."
926+
printpkgstyle(iostr, :Precompiling, what)
927+
end
924928
plural = length(configs) > 1 ? "dependency configurations" : ndeps == 1 ? "dependency" : "dependencies"
925929
print(iostr, " $(ndeps) $(plural) successfully precompiled in $(seconds_elapsed) seconds")
926930
if n_already_precomp > 0 || !isempty(circular_deps)

0 commit comments

Comments
 (0)