Skip to content

Commit

Permalink
Init codegen during sysimg restore.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jul 22, 2021
1 parent 2c02de8 commit 2b2be01
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,6 @@ JL_DLLEXPORT void julia_init(JL_IMAGE_SEARCH rel)
else
jl_init_types();

jl_init_codegen();
jl_init_common_symbols();
jl_init_flisp();
jl_init_serializer();
Expand Down
1 change: 1 addition & 0 deletions src/staticdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,7 @@ static void jl_restore_system_image_from_stream(ios_t *f) JL_GC_DISABLED
}

s.s = &sysimg;
jl_init_codegen();
jl_update_all_fptrs(&s); // fptr relocs and registration
// reinit ccallables, which require codegen to be initialized
s.s = f;
Expand Down

0 comments on commit 2b2be01

Please sign in to comment.