From fd97bb3957e5378bae117828708b2d86ab7abb72 Mon Sep 17 00:00:00 2001 From: gbaraldi Date: Wed, 21 Aug 2024 15:06:34 -0300 Subject: [PATCH] Empty out loaded_precompiles dict instead of asserting it's empty. This dict will contain things if we load a package image during precompilation --- base/Base.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/Base.jl b/base/Base.jl index 081426fa94d67..10a8dd1532f92 100644 --- a/base/Base.jl +++ b/base/Base.jl @@ -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