Dune 3.20.0~alpha4 adds %{os}, %{os_version}, %{os_distribution}, and %{os_family} percent forms, --alias/--alias-rec CLI flags, and a (timeout) field for cram tests. A Dune cache fix restores empty directories, preventing spurious invalidation of all dependent rules.
Features
- OCaml stdlib:
List.split_mapproposed as a generalizedsplittaking a function, equivalent tosplit (map f l)without intermediate allocations. (#14185, opened) - OCaml compiler:
--no-inter-tail-callsflag proposed forocamloptandocamlnatto disable interprocedural tail-call optimization, improving stack traces for sampling profilers. (#14186, opened) - Oxcaml LLVM backend: Four PRs add tail calls, local/heap allocation, integer and float operations, and switch statements; subsequently refactored into a single replacement PR. (#4507–#4510, opened)
- Oxcaml JSIR backend: Multi-file compilation added via a global symbol table, enabling cross-unit references; the standard library compiles and links under this mechanism. (#4525, opened)
- Merlin (oxcaml): Merged support for
@@@merlin.documentand@@@merlin.locatefloating attributes, allowing PPX preprocessors to override Merlin's document and locate outputs at specific source locations. (#177)
Fixes
- Dune cache: Empty directories are now restored from cache, preventing spurious invalidation of all dependent rules. (#11117)
- Dune ctypes stanza: Fixed an internal error in
dune buildwhen linking executables that use thectypesstanza. (#12018) - OCaml toplevel:
-initfile not read when-eis used, leaving values unbound; fix reorders initialization before script execution. (#14190, opened) - OCaml toplevel 5.4: Qualified variant constructors and record labels printed with internal
Lib__Modulepaths instead ofLib.Module; regression fix proposed. (#14192, opened) - eio:
Fiber.anynow prioritizes returning a resolved value over cancelling remaining fibers when one has already completed. Merged 2025-08-11. (#806) - Odoc: Fixed a bug where the file magic-string check succeeded when the stored magic was a prefix of the actual one, causing a subsequent unmarshalling failure. (#1375, opened)
Releases
- Dune 3.20.0~alpha4: Released 2025-08-12. Adds
%{os},%{os_version},%{os_distribution},%{os_family}percent forms,--alias/--alias-recCLI flags, and a(timeout)field for cram tests. Release