Skip to content

Move the management of Jsoo config details out of dune#13613

Open
vouillon wants to merge 1 commit intoocaml:mainfrom
vouillon:jsoo-build-config
Open

Move the management of Jsoo config details out of dune#13613
vouillon wants to merge 1 commit intoocaml:mainfrom
vouillon:jsoo-build-config

Conversation

@vouillon
Copy link
Member

Dune had to know about all possible Jsoo config to create rules upfront. This is no longer necessary with #13611.

The corresponding Js_of_ocaml changes are in ocsigen/js_of_ocaml#2177.

rgrinberg pushed a commit that referenced this pull request Feb 18, 2026
Refactor jsoo archive generation to use a demand-driven approach.
Previously, rules for all configuration variants were generated upfront
whenever a library was built. This logic is now decoupled from general
library rules; instead, the build system intercepts requests for
specific configuration directories and generates the necessary rules
dynamically.

This will enable the following improvements:
-  The config details can be moved out of dune into jsoo (#13613).
- This will make it possible to implement a more incremental build
process without generating a large volume of unused rules for
unrequested configurations (#13612).

Signed-off-by: Jérôme Vouillon <jerome.vouillon@gmail.com>
@vouillon vouillon force-pushed the jsoo-build-config branch 2 times, most recently from ff68af5 to 761f25d Compare February 26, 2026 11:24
Dune had to know about all possible Jsoo config to create rules upfront. This is no
longer necessary with ocaml#13611.

Signed-off-by: Jérôme Vouillon <jerome.vouillon@gmail.com>
@vouillon vouillon marked this pull request as ready for review February 27, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant