Skip to content

Commit f2d1276

Browse files
Fix last startup & shutdown precompiles (#51557)
1 parent a988992 commit f2d1276

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

contrib/generate_precompile.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ precompile(isequal, (String, String))
4545
precompile(Base.check_open, (Base.TTY,))
4646
precompile(Base.getproperty, (Base.TTY, Symbol))
4747
precompile(write, (Base.TTY, String))
48+
precompile(Tuple{typeof(Base.get), Base.TTY, Symbol, Bool})
49+
precompile(Tuple{typeof(Base.hashindex), String, Int64})
50+
precompile(Tuple{typeof(Base.write), Base.GenericIOBuffer{Array{UInt8, 1}}, String})
51+
precompile(Tuple{typeof(Base.indexed_iterate), Tuple{Nothing, Int64}, Int64})
52+
precompile(Tuple{typeof(Base.indexed_iterate), Tuple{Nothing, Int64}, Int64, Int64})
4853
4954
# used by Revise.jl
5055
precompile(Tuple{typeof(Base.parse_cache_header), String})
@@ -57,6 +62,7 @@ precompile(Tuple{typeof(delete!), Dict{Base.PkgId,Vector{Function}}, Base.PkgId}
5762
precompile(Tuple{typeof(push!), Vector{Function}, Function})
5863
5964
# miscellaneous
65+
precompile(Tuple{typeof(Base.exit)})
6066
precompile(Tuple{typeof(Base.require), Base.PkgId})
6167
precompile(Tuple{typeof(Base.recursive_prefs_merge), Base.Dict{String, Any}})
6268
precompile(Tuple{typeof(Base.recursive_prefs_merge), Base.Dict{String, Any}, Base.Dict{String, Any}, Vararg{Base.Dict{String, Any}}})

stdlib/REPL/src/precompile.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const PARALLEL_PRECOMPILATION = true
2525
const debug_output = devnull # or stdout
2626

2727
CTRL_C = '\x03'
28+
CTRL_D = '\x04'
2829
CTRL_R = '\x12'
2930
UP_ARROW = "\e[A"
3031
DOWN_ARROW = "\e[B"
@@ -130,7 +131,7 @@ generate_precompile_statements() = try
130131
sleep(0.1)
131132
end
132133
end
133-
write(ptm, "exit()\n")
134+
write(ptm, "$CTRL_D")
134135
wait(tee)
135136
success(p) || Base.pipeline_error(p)
136137
close(ptm)

0 commit comments

Comments
 (0)