aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--stm/stm.ml4
-rw-r--r--toplevel/coqtop.ml6
2 files changed, 6 insertions, 4 deletions
diff --git a/stm/stm.ml b/stm/stm.ml
index 12f414f39..0ee9ea084 100644
--- a/stm/stm.ml
+++ b/stm/stm.ml
@@ -2483,12 +2483,16 @@ let new_doc { doc_type ; require_libs } =
begin match doc_type with
| Interactive ln ->
+ Safe_typing.allow_delayed_constants := true;
Declaremods.start_library ln
+
| VoDoc ln ->
let ldir = Flags.verbosely Library.start_library ln in
VCS.set_ldir ldir;
set_compilation_hints ln
+
| VioDoc ln ->
+ Safe_typing.allow_delayed_constants := true;
let ldir = Flags.verbosely Library.start_library ln in
VCS.set_ldir ldir;
set_compilation_hints ln
diff --git a/toplevel/coqtop.ml b/toplevel/coqtop.ml
index c61a1fd41..553da2dc0 100644
--- a/toplevel/coqtop.ml
+++ b/toplevel/coqtop.ml
@@ -333,8 +333,8 @@ let compile ~verbosely ~f_in ~f_out =
(Printf.sprintf "%.3f" (wall_clock2 -. wall_clock1));
Aux_file.stop_aux_file ();
Dumpglob.end_dump_glob ()
- | BuildVio ->
+ | BuildVio ->
Flags.record_aux_file := false;
Dumpglob.noglob ();
@@ -734,9 +734,7 @@ let parse_args arglist =
|"-profile-ltac" -> Flags.profile_ltac := true
|"-q" -> Coqinit.no_load_rc ()
|"-quiet"|"-silent" -> Flags.quiet := true; Flags.make_warn false
- |"-quick" ->
- Safe_typing.allow_delayed_constants := true;
- compilation_mode := BuildVio
+ |"-quick" -> compilation_mode := BuildVio
|"-list-tags" -> print_tags := true
|"-time" -> Flags.time := true
|"-type-in-type" -> set_type_in_type ()