@@ -82,24 +82,24 @@ empty!(LOAD_PATH)
82
82
@eval Base creating_sysimg = false
83
83
Base. init_load_path () # want to be able to find external packages in userimg.jl
84
84
85
- let
86
- tot_time_userimg = @elapsed ( Base. isfile ( " userimg.jl " ) && Base . include (Main, " userimg.jl " ))
85
+ # Set up Main module
86
+ import Base. MainInclude : eval, include
87
87
88
+ Base. @eval Base let
89
+ ccall (:jl_clear_implicit_imports , Cvoid, (Any,), Main)
90
+ tot_time_userimg = @elapsed (isfile (" userimg.jl" ) && include (Main, " userimg.jl" ))
88
91
89
- tot_time_base = (Base . end_base_include - Base . start_base_include) * 10.0 ^ (- 9 )
90
- tot_time = tot_time_base + Base . tot_time_stdlib[] + tot_time_userimg
92
+ tot_time_base = (end_base_include - start_base_include) * 10.0 ^ (- 9 )
93
+ tot_time = tot_time_base + tot_time_stdlib[] + tot_time_userimg
91
94
92
- println (" Sysimage built. Summary:" )
93
- print (" Total ─────── " ); Base . time_print (tot_time * 10 ^ 9 ); print (" \n " );
94
- print (" Base: ─────── " ); Base . time_print (tot_time_base * 10 ^ 9 ); print (" " ); show (IOContext (stdout , :compact => true ), (tot_time_base / tot_time) * 100 ); println (" %" )
95
- print (" Stdlibs: ──── " ); Base . time_print (Base . tot_time_stdlib[] * 10 ^ 9 ); print (" " ); show (IOContext (stdout , :compact => true ), (Base . tot_time_stdlib[] / tot_time) * 100 ); println (" %" )
96
- if isfile (" userimg.jl" )
97
- print (" Userimg: ──── " ); Base . time_print (tot_time_userimg * 10 ^ 9 ); print (" " ); show (IOContext (stdout , :compact => true ), (tot_time_userimg / tot_time) * 100 ); println (" %" )
98
- end
95
+ println (" Sysimage built. Summary:" )
96
+ print (" Total ─────── " ); time_print (tot_time * 10 ^ 9 ); print (" \n " );
97
+ print (" Base: ─────── " ); time_print (tot_time_base * 10 ^ 9 ); print (" " ); show (IOContext (stdout , :compact => true ), (tot_time_base / tot_time) * 100 ); println (" %" )
98
+ print (" Stdlibs: ──── " ); time_print (tot_time_stdlib[] * 10 ^ 9 ); print (" " ); show (IOContext (stdout , :compact => true ), (tot_time_stdlib[] / tot_time) * 100 ); println (" %" )
99
+ if isfile (" userimg.jl" )
100
+ print (" Userimg: ──── " ); time_print (tot_time_userimg * 10 ^ 9 ); print (" " ); show (IOContext (stdout , :compact => true ), (tot_time_userimg / tot_time) * 100 ); println (" %" )
101
+ end
99
102
end
100
103
101
- empty! (LOAD_PATH )
102
- empty! (DEPOT_PATH )
103
-
104
- # Set up Main module
105
- import Base. MainInclude: eval, include
104
+ Base. empty! (LOAD_PATH )
105
+ Base. empty! (DEPOT_PATH )
0 commit comments