Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 808203f

Browse files
gbaraldiKristofferC
authored andcommittedAug 26, 2024·
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 (cherry picked from commit 0c8641a)
1 parent 803520e commit 808203f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎base/Base.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ function __init__()
603603
init_active_project()
604604
append!(empty!(_sysimage_modules), keys(loaded_modules))
605605
empty!(explicit_loaded_modules)
606-
@assert isempty(loaded_precompiles)
606+
empty!(loaded_precompiles) # If we load a packageimage when building the image this might not be empty
607607
for (mod, key) in module_keys
608608
loaded_precompiles[key => module_build_id(mod)] = mod
609609
end

0 commit comments

Comments
 (0)
Please sign in to comment.