From 1e86ffb9b469a8a5ace29033dcb588ff1c2cff0a Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Tue, 30 Jul 2024 14:47:14 +0000 Subject: [PATCH] Extend loaded_precompiles fix to 1.11 The base commit got backported in rc. Should fix #832. --- src/loading.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loading.jl b/src/loading.jl index f4b31d45..58e2efee 100644 --- a/src/loading.jl +++ b/src/loading.jl @@ -43,7 +43,7 @@ function parse_pkg_files(id::PkgId) @assert reqs !== nothing pkgdata.requirements = reqs for chi in includes - if VERSION >= v"1.12.0-DEV.764" && haskey(Base.loaded_precompiles, id => buildid) + if isdefined(Base, :loaded_precompiles) && haskey(Base.loaded_precompiles, id => buildid) mod = Base.loaded_precompiles[id => buildid] else mod = Base.root_module(id)