Skip to content

Commit d273a40

Browse files
author
KristofferC
committed
init jlls we use if they are not initialized (happens when building a sysimage with Pkg
1 parent 499e7d3 commit d273a40

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/precompile.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using LibGit2: LibGit2
22
using Tar: Tar
33
using Downloads
4+
using p7zip_jll
45

56
# used by REPLExt too
67
function _run_precompilation_script_setup()
@@ -9,6 +10,9 @@ function _run_precompilation_script_setup()
910
empty!(DEPOT_PATH)
1011
pushfirst!(DEPOT_PATH, tmp)
1112
pushfirst!(LOAD_PATH, "@")
13+
if isempty(p7zip_jll.artifact_dir)
14+
p7zip_jll.__init__()
15+
end
1216
write(
1317
"Project.toml",
1418
"""

0 commit comments

Comments
 (0)