Skip to content

Commit 40bbf2f

Browse files
gbaraldikpamnany
authored andcommitted
Change init_julia slightly to adapt to 1.12 changes
1 parent 543e8da commit 40bbf2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/julia_init.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ void init_julia(int argc, char **argv) {
9393
free(_sysimage_path);
9494

9595
jl_options.image_file = sysimage_path;
96+
#if JULIA_VERSION_MAJOR == 1 && JULIA_VERSION_MINOR <= 11
9697
julia_init(JL_IMAGE_CWD);
98+
#else
99+
jl_image_buf_t sysimage = jl_preload_sysimg(jl_options.image_file);
100+
jl_init_(sysimage);
101+
#endif
97102
}
98103

99104
void shutdown_julia(int retcode) { jl_atexit_hook(retcode); }

0 commit comments

Comments
 (0)