Skip to content

Commit 4409d44

Browse files
KristofferCtimholy
authored andcommitted
make sure stale_cachefile is precompiled
1 parent 5206f93 commit 4409d44

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/generate_precompile.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ CTRL_C = '\x03'
1313
UP_ARROW = "\e[A"
1414
DOWN_ARROW = "\e[B"
1515

16+
hardcoded_precompile_statements = """
17+
precompile(Tuple{typeof(Base.stale_cachefile), String, String})"""
18+
1619
precompile_script = """
1720
2+2
1821
print("")
@@ -152,6 +155,10 @@ function generate_precompile_statements()
152155
push!(statements, statement)
153156
end
154157

158+
for statement in split(hardcoded_precompile_statements, '\n')
159+
push!(statements, statement)
160+
end
161+
155162
# Create a staging area where all the loaded packages are available
156163
PrecompileStagingArea = Module()
157164
for (_pkgid, _mod) in Base.loaded_modules

0 commit comments

Comments
 (0)