Skip to content

Commit a2c67a7

Browse files
gbaraldiKristofferC
authored and
KristofferC
committed
Empty out loaded_precompiles dict instead of asserting it's empty. (#55564)
This dict will contain things if we load a package image during precompilation
1 parent 4370edb commit a2c67a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/Base.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ function __init__()
647647
init_active_project()
648648
append!(empty!(_sysimage_modules), keys(loaded_modules))
649649
empty!(explicit_loaded_modules)
650-
@assert isempty(loaded_precompiles)
650+
empty!(loaded_precompiles) # If we load a packageimage when building the image this might not be empty
651651
for (mod, key) in module_keys
652652
loaded_precompiles[key => module_build_id(mod)] = mod
653653
end

0 commit comments

Comments
 (0)