From 2a355ef6f67ed08421d9c68605cbf8a4877383f0 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Fri, 12 Sep 2014 10:36:15 -0400 Subject: [PATCH] fix #8311, spurious warning about importing Core.eval into Main --- src/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/init.c b/src/init.c index 9ee349a8dc5bc..55f266e44a9ac 100644 --- a/src/init.c +++ b/src/init.c @@ -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;