From 17d4bba045eb410f0d9e81889ed1a10a3c7f44ac Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Wed, 20 Sep 2023 14:08:52 +0200 Subject: [PATCH] call Pkg precompile hook in latest world (#51397) Fixes https://github.com/JuliaLang/julia/issues/51280. (cherry picked from commit c22adc04994518e198d840ae5da9ebd89bb41451) --- base/loading.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index dd7038845f4f8f..ef0d5e4bf6f5f9 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -1954,7 +1954,7 @@ function _require(pkg::PkgId, env=nothing) pkg_precompile_attempted = true unlock(require_lock) try - PKG_PRECOMPILE_HOOK[](pkg.name, _from_loading = true) + @invokelatest PKG_PRECOMPILE_HOOK[](pkg.name, _from_loading = true) finally lock(require_lock) end