Skip to content

Commit ebdc636

Browse files
REPL: only load stdlibs during precompilation script (#57940)
Fixes #57939 Not tested as it's quite involved... requires building a custom sysimage.
1 parent b75482b commit ebdc636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/precompile.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Precompile
66
import ..REPL
77
# Prepare this staging area with all the loaded packages available
88
for (_pkgid, _mod) in Base.loaded_modules
9-
if !(_pkgid.name in ("Main", "Core", "Base", "REPL"))
9+
if !(_pkgid.name in ("Main", "Core", "Base", "REPL")) && Base.is_stdlib(_pkgid)
1010
eval(:(const $(Symbol(_mod)) = $_mod))
1111
end
1212
end

0 commit comments

Comments
 (0)