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 12, 2014
1 parent c2e0a94 commit ee4d1f2
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 @@ -802,14 +802,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

2 comments on commit ee4d1f2

@jey
Copy link
Contributor

@jey jey commented on ee4d1f2 Dec 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tkelman
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backported in 36aaaeb

Please sign in to comment.