aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp
diff options
context:
space:
mode:
authorGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2016-09-22 21:59:38 +0200
committerGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2016-09-22 21:59:38 +0200
commit20d6c289bff303ec1a4cab3a56431989d0e527d2 (patch)
tree0a481eb21424fb747f3ebc4241e138b34d782be4 /interp
parent505ac480574d235cd2f40ca4b2debde0bb875146 (diff)
coqc -o now places .glob file near .vo file
All compilation (by)products are placed where -o specifies. Used to be the case for .vo, .vio, .aux but not .glob
Diffstat (limited to 'interp')
-rw-r--r--interp/dumpglob.ml4
-rw-r--r--interp/dumpglob.mli2
2 files changed, 3 insertions, 3 deletions
diff --git a/interp/dumpglob.ml b/interp/dumpglob.ml
index 1e14eeb81..b020f8945 100644
--- a/interp/dumpglob.ml
+++ b/interp/dumpglob.ml
@@ -45,10 +45,10 @@ let dump_string s =
if dump () && !glob_output != Feedback then
Pervasives.output_string !glob_file s
-let start_dump_glob vfile =
+let start_dump_glob ~vfile ~vofile =
match !glob_output with
| MultFiles ->
- open_glob_file (Filename.chop_extension vfile ^ ".glob");
+ open_glob_file (Filename.chop_extension vofile ^ ".glob");
output_string !glob_file "DIGEST ";
output_string !glob_file (Digest.to_hex (Digest.file vfile));
output_char !glob_file '\n'
diff --git a/interp/dumpglob.mli b/interp/dumpglob.mli
index a7c799114..e84a64052 100644
--- a/interp/dumpglob.mli
+++ b/interp/dumpglob.mli
@@ -9,7 +9,7 @@
val open_glob_file : string -> unit
val close_glob_file : unit -> unit
-val start_dump_glob : string -> unit
+val start_dump_glob : vfile:string -> vofile:string -> unit
val end_dump_glob : unit -> unit
val dump : unit -> bool