Skip to content

docs(melange): document single-context library builds - #16501

Open
anmonteiro wants to merge 6 commits into
ocaml:mainfrom
anmonteiro:docs/single-context-melange
Open

anmonteiro wants to merge 6 commits into
ocaml:mainfrom
anmonteiro:docs/single-context-melange

Conversation

@anmonteiro

@anmonteiro anmonteiro commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Document single-context OCaml/Melange library builds and their mode-specific fields.

Upstreams anmonteiro#188.

019ea5b2-acde-7141-bcbd-e3c833c8eefe

@anmonteiro

Copy link
Copy Markdown
Collaborator Author

Added the intentional (lang dune 3.24) example to doc/test/run.t in 5ae25e0. The documentation version check, @check, and @fmt pass locally. Full @runtest still hits the existing macOS FSEvents/file-watcher, gcc lookup, and Nix code-signing failures.

anmonteiro added a commit that referenced this pull request Sep 28, 2026
Document how mixed OCaml/Melange libraries build and install without
`melc`, and the cases that still require it.

Documents #15021 independently of #16501.

---------

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro
anmonteiro force-pushed the docs/single-context-melange branch from 5ae25e0 to 8964a8a Compare October 17, 2026 05:40
@anmonteiro
anmonteiro marked this pull request as ready for review October 17, 2026 05:47
anmonteiro added a commit that referenced this pull request Oct 18, 2026
Add `melange.flags` for libraries and `env` stanzas in Dune 3.26,
deprecating `melange.compile_flags` while retaining compatibility.
`melange.emit` keeps `compile_flags`.

Upstreams anmonteiro#214; follow-up to #16501.

---------

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro
anmonteiro force-pushed the docs/single-context-melange branch 2 times, most recently from 756e8ce to 2176034 Compare November 3, 2026 04:48
@anmonteiro
anmonteiro force-pushed the docs/single-context-melange branch from 53e5275 to 7c32c9b Compare November 22, 2026 19:27
anmonteiro added a commit that referenced this pull request Nov 23, 2026
Cover `root_module` in `melange.emit` with qualified subdirectories and
a local module shadowing a dependency. Related to #16501.

01a15050-6eae-7cb2-97c9-ed7b73a94c21

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro added a commit that referenced this pull request Nov 23, 2026
Cover transitive re-exports through `libraries` and `melange.libraries`
when consumed by `melange.emit`, with implicit transitive dependencies
disabled. Also check that `re_export` is rejected in the emit stanza
itself. Related to #16501.

01a15050-6eae-7cb2-97c9-ed7b73a94c21

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro added a commit that referenced this pull request Nov 23, 2026
Cover `select` targets in qualified subdirectories of `melange.emit`,
including execution of the emitted JavaScript. Related to #16501.

01a15050-6eae-7cb2-97c9-ed7b73a94c21

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro added a commit that referenced this pull request Nov 23, 2026
…7185)

Reproduce missing selected modules when `select` is declared only in
`melange.libraries`, with ordinary `libraries` as a working control.
Related to #16501.

01a15050-6eae-7cb2-97c9-ed7b73a94c21

Signed-off-by: Antonio Nuno Monteiro <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant