Skip to content

Commit

Permalink
fix #8311, spurious warning about importing Core.eval into Main
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Sep 16, 2014
1 parent cb60fc8 commit 2a355ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,14 +800,15 @@ void julia_init(char *imageFile)

if (!imageFile) {
jl_core_module = jl_new_module(jl_symbol("Core"));
jl_init_intrinsic_functions();
jl_init_primitives();

jl_new_main_module();
jl_internal_main_module = jl_main_module;

jl_current_module = jl_core_module;
jl_root_task->current_module = jl_current_module;

jl_init_intrinsic_functions();
jl_init_primitives();
jl_load("boot.jl");
jl_get_builtin_hooks();
jl_boot_file_loaded = 1;
Expand Down

0 comments on commit 2a355ef

Please sign in to comment.