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

(cherry picked from commit 0c8641a)
  • Loading branch information
gbaraldi authored and KristofferC committed Aug 26, 2024
1 parent 803520e commit 808203f
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 @@ -603,7 +603,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 808203f

Please sign in to comment.