@@ -4,7 +4,7 @@ open Fcc_lib
44
55let fcc_main int_backend roots display debug plugins trace_file files coqlib
66 findlib_config ocamlpath rload_path load_path require_libraries no_vo
7- max_errors coq_diags_level record_comments =
7+ max_errors coq_diags_level record_comments save_vof load_vof =
88 let vo_load_path = rload_path @ load_path in
99 let args = [] in
1010 let cmdline =
@@ -29,6 +29,8 @@ let fcc_main int_backend roots display debug plugins trace_file files coqlib
2929 ; max_errors
3030 ; coq_diags_level
3131 ; record_comments
32+ ; save_vof
33+ ; load_vof
3234 }
3335 in
3436 Driver. go ~int_backend args
@@ -61,6 +63,14 @@ let no_vo : bool Term.t =
6163 let doc = " Don't generate .vo files at the end of compilation" in
6264 Arg. (value & flag & info [ " no_vo" ] ~doc )
6365
66+ let save_vof : bool Term.t =
67+ let doc = " Save a .vof file with Fleche-specific metadata" in
68+ Arg. (value & flag & info [ " vof" ] ~doc )
69+
70+ let load_vof : bool Term.t =
71+ let doc = " Save a .vof file with Fleche-specific metadata" in
72+ Arg. (value & flag & info [ " load_vof" ] ~doc )
73+
6474let max_errors : int option Term.t =
6575 let doc = " Maximum errors in files before aborting" in
6676 Arg. (
@@ -106,7 +116,7 @@ let fcc_cmd : int Cmd.t =
106116 const fcc_main $ int_backend $ roots $ display $ debug $ plugins
107117 $ trace_file $ file $ coqlib $ findlib_config $ ocamlpath $ rload_paths
108118 $ qload_paths $ ri_from $ no_vo $ max_errors $ coq_diags_level
109- $ record_comments)
119+ $ record_comments $ save_vof $ load_vof )
110120 in
111121 let exits = Exit_codes. [ fatal; stopped; scheduled; uri_failed ] in
112122 Cmd. (v (Cmd. info " fcc" ~exits ~version ~doc ~man ) fcc_term)
0 commit comments