We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 03d371d + 7530368 commit c5614d0Copy full SHA for c5614d0
toplevel/vernac.ml
@@ -40,7 +40,15 @@ type time_output =
40
41
let make_time_output = function
42
| Coqargs.ToFeedback -> ToFeedback
43
- | ToFile f -> ToChannel (Format.formatter_of_out_channel (open_out f))
+ | ToFile f ->
44
+ let ch = open_out f in
45
+ let fch = Format.formatter_of_out_channel ch in
46
+ let close () =
47
+ Format.pp_print_flush fch ();
48
+ close_out ch
49
+ in
50
+ at_exit close;
51
+ ToChannel fch
52
53
module State = struct
54
0 commit comments