Skip to content

Commit 806d083

Browse files
authored
Build with OCaml 5.4 (#2717)
This doesn't make OCamlformat able to format 5.4 code.
1 parent 75e2bdd commit 806d083

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ profile. This started with version 0.26.0.
66

77
## unreleased
88

9+
### Added
10+
11+
- Support for OCaml 5.4 (#2717, @Julow)
12+
913
### Deprecated
1014

1115
- Starting in this release, ocamlformat can use cmdliner >= 2.0.0. When that is

lib/bin_conf/Bin_conf.ml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -523,11 +523,9 @@ let update_using_env conf =
523523
let discard_formatter =
524524
Format.(
525525
formatter_of_out_functions
526-
{ out_string= (fun _ _ _ -> ())
527-
; out_flush= (fun () -> ())
528-
; out_newline= (fun () -> ())
529-
; out_spaces= (fun _ -> ())
530-
; out_indent= (fun _ -> ()) } )
526+
{ (get_formatter_out_functions ()) with
527+
out_string= (fun _ _ _ -> ())
528+
; out_flush= (fun () -> ()) } )
531529

532530
let global_lib_term =
533531
Term.(

0 commit comments

Comments
 (0)