Dune 3.23.0 releases with user rules sandboxed by default and compile_commands.json generation for C/C++ stubs. The merged relocatable compiler is now the default for dune pkg, enabling cross-project build-cache reuse, and on OCaml trunk Unix.opendir on Windows raises ENOTDIR for non-directory paths, a breaking change.
Features
- Dune (relocatable compiler): Merged; the relocatable OCaml compiler is now the default for
dune pkg, enabling build-cache reuse across projects. #14357 - Dune (dependency filtering): Open PR narrows compile-rule dependencies to only referenced libraries, eliminating over-rebuilds when unreferenced sibling libraries change. #14472
- OxCaml (SSA IR): Open PR introduces an SSA intermediate representation between Cmm and CFG, enabled via
-use-ssa, with a reducer framework for SSA-to-SSA transforms. #5810 - OxCaml (ikinds): Open PR enables ikinds by default, replacing the
-ikindsflag with-no-ikinds. #5999 - opam update: Now applies repository diffs containing file-to-directory or directory-to-file renames, resolving the
patchfailure in #3830. #6915
Compatibility and Releases
- Dune 3.23.0: Released with user rules sandboxed by default,
compile_commands.jsongeneration for C/C++ stubs, and no auto-promotion of.opamfiles. Release - opam-repository: Packages requiring OCaml < 4.11 are archived; the supported compiler list is now 4.11+ and 5.3+. #29848
- Mirage 4.11.0: Breaking:
--dhcpbecomes--no-dhcp; DNS and happy-eyeballs boot arguments switch from underscores to hyphens;Mirage_runtime.registerremoved. #29870
Fixes
- OCaml trunk:
Unix.opendiron Windows now raisesENOTDIRinstead ofEUNKNOWNERR -267for non-directory paths. Breaking change. #14788 - OCaml 5.5: Fixes null-pointer dereference in
getgrnam_rand related POSIX thread-safe functions inlibunix. Cherry-picked from trunk. #14715 - Odoc 3.2.0: Fixes an assertion failure when building docs for merlin-lib and a
Not_foundcrash with OCaml 5.5 caused by untracked identifiers inArrow_functorexpressions. #1430, #1427 - js_of_ocaml: Merged fixes correct variable coalescing for
breakinstructions, ensurewasm:js-stringimports resolve without the JS String Builtins proposal, and remove Node.js 26-rejected experimental flags. #2233, #2230, #2234