File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -734,12 +734,13 @@ JL_DLLEXPORT void julia_init(JL_IMAGE_SEARCH rel)
734734 if (jl_options .cpu_target == NULL )
735735 jl_options .cpu_target = "native" ;
736736
737- if (jl_options .image_file )
737+ if (jl_options .image_file ) {
738738 jl_restore_system_image (jl_options .image_file );
739- else
739+ } else {
740740 jl_init_types ();
741+ jl_init_codegen ();
742+ }
741743
742- jl_init_codegen ();
743744 jl_init_common_symbols ();
744745 jl_init_flisp ();
745746 jl_init_serializer ();
Original file line number Diff line number Diff line change @@ -1839,6 +1839,7 @@ static void jl_restore_system_image_from_stream(ios_t *f) JL_GC_DISABLED
18391839 }
18401840
18411841 s .s = & sysimg ;
1842+ jl_init_codegen ();
18421843 jl_update_all_fptrs (& s ); // fptr relocs and registration
18431844 // reinit ccallables, which require codegen to be initialized
18441845 s .s = f ;
You can’t perform that action at this time.
0 commit comments