Skip to content

Commit

Permalink
Empty out loaded_precompiles dict instead of asserting it's empty. (#…
Browse files Browse the repository at this point in the history
…55564)

This dict will contain things if we load a package image during
precompilation
  • Loading branch information
gbaraldi authored and KristofferC committed Sep 12, 2024
1 parent 4370edb commit a2c67a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ function __init__()
init_active_project()
append!(empty!(_sysimage_modules), keys(loaded_modules))
empty!(explicit_loaded_modules)
@assert isempty(loaded_precompiles)
empty!(loaded_precompiles) # If we load a packageimage when building the image this might not be empty
for (mod, key) in module_keys
loaded_precompiles[key => module_build_id(mod)] = mod
end
Expand Down

0 comments on commit a2c67a7

Please sign in to comment.