summaryrefslogtreecommitdiff
path: root/toplevel/toploop.ml
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1996-02-05 16:21:46 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1996-02-05 16:21:46 +0000
commit567aebacc7e89aece982d9fafb53d24945ac67f6 (patch)
treefe502c5fd256d85580377a3eeff9844042ab1cf0 /toplevel/toploop.ml
parent0a4a618a4a89c2d4c5b735d2936c981c541056b9 (diff)
downloadocaml-567aebacc7e89aece982d9fafb53d24945ac67f6.tar.gz
Ne pas faire initial_env avant d'avoir parse la ligne de commande
(pour les options -I). git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@625 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'toplevel/toploop.ml')
-rw-r--r--toplevel/toploop.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/toplevel/toploop.ml b/toplevel/toploop.ml
index 2dbb56c17e..4322a5916a 100644
--- a/toplevel/toploop.ml
+++ b/toplevel/toploop.ml
@@ -179,7 +179,6 @@ let empty_lexbuf lb =
let _ =
Symtable.init_toplevel();
- toplevel_env := Compile.initial_env ();
Sys.interactive := true
(* The loop *)
@@ -188,6 +187,7 @@ let loop() =
print_string "\tCaml Special Light version ";
print_string Config.version;
print_newline(); print_newline();
+ toplevel_env := Compile.initial_env();
let lb = Lexing.from_function refill_lexbuf in
Location.input_name := "";
Location.input_lexbuf := Some lb;