From 71800e4545571acbaeb87722ba1143f4f238ac5d Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Tue, 11 Feb 2020 14:30:32 +0100 Subject: [PATCH] Fix pretty printing when building with no stdlibs. --- 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))