Skip to content

Commit 77004a1

Browse files
committed
Update init_julia to use the correct jl_init...
1 parent 3c7ff29 commit 77004a1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/julia_init.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,11 @@ void init_julia(int argc, char **argv) {
9292
set_depot_load_path(root_dir);
9393
free(_sysimage_path);
9494

95-
jl_options.image_file = sysimage_path;
9695
#if JULIA_VERSION_MAJOR == 1 && JULIA_VERSION_MINOR <= 11
96+
jl_options.image_file = sysimage_path;
9797
julia_init(JL_IMAGE_CWD);
9898
#else
99-
jl_image_buf_t sysimage = jl_preload_sysimg(jl_options.image_file);
100-
jl_init_(sysimage);
99+
jl_init_with_image_file(NULL, sysimage_path)
101100
#endif
102101
}
103102

0 commit comments

Comments
 (0)