From 234b598ac274d2cfc0c74f3f7ec21da86b8dcd39 Mon Sep 17 00:00:00 2001 From: KristofferC Date: Tue, 19 Sep 2023 18:11:23 +0200 Subject: [PATCH] call Pkg precompile hook in latest world --- base/loading.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index 7cfd80b130da3..5ebb5dc120282 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -1961,7 +1961,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