Skip to content

Commit c95ed0d

Browse files
committed
fix flush err_formatter issue
Note this can not be done in the patch of Format.ml, since Format module is not snapshot, so the benefit will not trickle down to non-patched compilers (including windows)
1 parent 7a7a368 commit c95ed0d

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

jscomp/core/bs_conditional_initial.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,5 @@ let setup_env () =
7070
; Switch.cut := 100 (* tweakable but not very useful *)
7171
#end
7272

73+
let () =
74+
at_exit (fun _ -> Format.pp_print_flush Format.err_formatter ())

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81628,7 +81628,8 @@ let setup_env () =
8162881628
Lexer.replace_directive_string "BS_VERSION" Bs_version.version
8162981629

8163081630

81631-
81631+
let () =
81632+
at_exit (fun _ -> Format.pp_print_flush Format.err_formatter ())
8163281633
end
8163381634
module Ext_pervasives : sig
8163481635
#1 "ext_pervasives.mli"

lib/4.06.1/unstable/js_refmt_compiler.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81628,7 +81628,8 @@ let setup_env () =
8162881628
Lexer.replace_directive_string "BS_VERSION" Bs_version.version
8162981629

8163081630

81631-
81631+
let () =
81632+
at_exit (fun _ -> Format.pp_print_flush Format.err_formatter ())
8163281633
end
8163381634
module Ext_pervasives : sig
8163481635
#1 "ext_pervasives.mli"

lib/4.06.1/whole_compiler.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365478,7 +365478,8 @@ let setup_env () =
365478365478
Lexer.replace_directive_string "BS_VERSION" Bs_version.version
365479365479

365480365480

365481-
365481+
let () =
365482+
at_exit (fun _ -> Format.pp_print_flush Format.err_formatter ())
365482365483
end
365483365484
module Ext_spec : sig
365484365485
#1 "ext_spec.mli"

0 commit comments

Comments
 (0)