Skip to content

Commit c377938

Browse files
committed
Flag -compat 8.4 now loads Coq.Compat.Coq84.
1 parent 81ef6a6 commit c377938

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGES

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changes from V8.5beta3
22
======================
33

4+
Vernacular commands
5+
- Flag -compat 8.4 now loads Coq.Compat.Coq84. The standard way of putting Coq
6+
in v8.4 compatibility mode is to pass the command line flag "-compat 8.4". It
7+
can be followed by "-require Coq.Compat.AdmitAxiom" if 8.4 behavior of admit is
8+
needed, in which case it uses an axiom.
9+
410
Specification language
511

612
- Syntax "$(tactic)$" changed to "ltac:(tactic)".

toplevel/coqtop.ml

+6-1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ let require () =
196196
let map dir = Qualid (Loc.ghost, qualid_of_string dir) in
197197
Vernacentries.vernac_require None (Some false) (List.rev_map map !require_list)
198198

199+
let add_compat_require v =
200+
match v with
201+
| Flags.V8_4 -> add_require "Coq.Compat.Coq84"
202+
| _ -> ()
203+
199204
let compile_list = ref ([] : (bool * string) list)
200205

201206
let glob_opt = ref false
@@ -475,7 +480,7 @@ let parse_args arglist =
475480
|"-async-proofs-private-flags" ->
476481
Flags.async_proofs_private_flags := Some (next ());
477482
|"-worker-id" -> set_worker_id opt (next ())
478-
|"-compat" -> Flags.compat_version := get_compat_version (next ())
483+
|"-compat" -> let v = get_compat_version (next ()) in Flags.compat_version := v; add_compat_require v
479484
|"-compile" -> add_compile false (next ())
480485
|"-compile-verbose" -> add_compile true (next ())
481486
|"-dump-glob" -> Dumpglob.dump_into_file (next ()); glob_opt := true

0 commit comments

Comments
 (0)