diff options
| author | Enrico Tassi | 2016-06-14 12:56:03 +0200 |
|---|---|---|
| committer | Enrico Tassi | 2016-06-14 12:56:03 +0200 |
| commit | a1eeb3abe387a89cd5a9108160643b6157f9c0af (patch) | |
| tree | e17a2b20e8c44126912acdf601124386349f3f89 /lib | |
| parent | ee08817e76f91cc67ba9d2ea8f79218e413e21b4 (diff) | |
| parent | c046c30e11d1658d5580c157ebb0d3e6d70fb4e4 (diff) | |
Merge remote-tracking branch 'origin/pr/166' into trunk
Add -o option to coqc
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/aux_file.ml | 6 | ||||
| -rw-r--r-- | lib/aux_file.mli | 3 | ||||
| -rw-r--r-- | lib/flags.ml | 1 | ||||
| -rw-r--r-- | lib/flags.mli | 1 |
4 files changed, 7 insertions, 4 deletions
diff --git a/lib/aux_file.ml b/lib/aux_file.ml index d06d4b3768..096305b987 100644 --- a/lib/aux_file.ml +++ b/lib/aux_file.ml @@ -25,9 +25,9 @@ let mk_absolute vfile = if Filename.is_relative vfile then CUnix.correct_path vfile (Sys.getcwd ()) else vfile -let start_aux_file_for vfile = - let vfile = mk_absolute vfile in - oc := Some (open_out (aux_file_name_for vfile)); +let start_aux_file ~aux_file:output_file ~v_file = + let vfile = mk_absolute v_file in + oc := Some (open_out output_file); Printf.fprintf (Option.get !oc) "COQAUX%d %s %s\n" version (Digest.to_hex (Digest.file vfile)) vfile diff --git a/lib/aux_file.mli b/lib/aux_file.mli index 127827ab6a..86e322b71d 100644 --- a/lib/aux_file.mli +++ b/lib/aux_file.mli @@ -17,7 +17,8 @@ module H : Map.S with type key = int * int module M : Map.S with type key = string val contents : aux_file -> string M.t H.t -val start_aux_file_for : string -> unit +val aux_file_name_for : string -> string +val start_aux_file : aux_file:string -> v_file:string -> unit val stop_aux_file : unit -> unit val recording : unit -> bool diff --git a/lib/flags.ml b/lib/flags.ml index f07877e20d..ba19c7a63b 100644 --- a/lib/flags.ml +++ b/lib/flags.ml @@ -47,6 +47,7 @@ let batch_mode = ref false type compilation_mode = BuildVo | BuildVio | Vio2Vo let compilation_mode = ref BuildVo +let compilation_output_name = ref None let test_mode = ref false diff --git a/lib/flags.mli b/lib/flags.mli index 729c21fcf9..8fe64d24fa 100644 --- a/lib/flags.mli +++ b/lib/flags.mli @@ -14,6 +14,7 @@ val load_init : bool ref val batch_mode : bool ref type compilation_mode = BuildVo | BuildVio | Vio2Vo val compilation_mode : compilation_mode ref +val compilation_output_name : string option ref val test_mode : bool ref |
