Features
-
Assembly sources (
.s,.S,.asm) are now recognised inforeign_stubsandforeign_archivestanzas via(language asm). The C compiler is used as the assembler on most platforms; MSVC requires a separate assembler binary. Opened by @Alizter; not yet merged. (#16849) -
PPX rewriters receive a compilation-mode cookie identifying the OCaml or Melange target. Available under
(lang dune 3.26)and later. Merged 2026-10-29. (#16699) -
A prototype for RPC-backed rule plugins lets a project define custom stanza-like forms in OCaml, invoked as
(plugin.name args …). Requires(lang dune 3.26)and(using plugin 0.1). The existing site-plugin stanza is renamed to(dune_site.plugin …). Ongoing; updated 2026-10-27. (#16760) -
dune buildforwarded to a running watch-mode server now displays a progress line (e.g.Done: 94% (89/94, 5 left)). Merged 2026-10-30. (#16819)
Fixes
-
Watch-mode builds no longer hang indefinitely when the file watcher loses a sync-file notification. Pending syncs are retried with fresh marker IDs after overflow, and a five-second timeout triggers a retry when no notification arrives. Merged 2026-10-27 and 2026-10-30. (#16756, #16850)
-
When a CPU-count probe (e.g.
nproc) cannot be spawned, dune falls back to the next detection command instead of retrying the same command. Fixes a hang on macOS 27 wherenprocis an x86 binary. Merged 2026-10-27. (#16767) -
Overlapping directory dependencies in sandboxes are populated only once, eliminating the
symlink … File existserror when a rule with(deps (package …))runs a binary from its provider package. Merged 2026-10-28. (#16806)
Compatibility and Releases
-
The 3.25 changelog now documents that actions no longer see
_build/install/<context>onPATH/OCAMLPATH/CAML_LD_LIBRARY_PATHunless they declare(deps (package …)). This was a breaking change previously omitted from the release notes. Merged 2026-11-01. (#16859) -
Binary lookups (
%{bin:…}, actionPATH, staged binaries) from a package-owned directory are narrowed to that package's declared dependencies, reducing the set of packages that must be built to resolve a single binary. Merged 2026-10-28. (#15381)