From fa503122785603ee4b9f4ce4f36b524491b65650 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 12 Feb 2020 11:46:45 +0100 Subject: [PATCH] Fix pretty printing when building with no stdlibs. (#34727) --- base/sysimg.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 27b25069cf11d..fd03bfa94f3cc 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -49,7 +49,7 @@ let :Statistics, ] - maxlen = maximum(textwidth.(string.(stdlibs))) + maxlen = reduce(max, textwidth.(string.(stdlibs)); init=0) print_time = (mod, t) -> (print(rpad(string(mod) * " ", maxlen + 3, "─")); Base.time_print(t * 10^9); println()) print_time(Base, (Base.end_base_include - Base.start_base_include) * 10^(-9))