Skip to content

[3.24.1] Backport #14904#15451

Merged
shonfeder merged 2 commits into
mainfrom
backport-14904
Jul 9, 2026
Merged

[3.24.1] Backport #14904#15451
shonfeder merged 2 commits into
mainfrom
backport-14904

Conversation

@shonfeder

Copy link
Copy Markdown
Member

Backport #14904 onto 3.24.1

shonfeder and others added 2 commits July 8, 2026 16:36
Signed-off-by: Shon Feder <shon.feder@gmail.com>
…14904)

When generating jsoo library archive rules on demand, resolve the
library stanza the same way Ml_sources does: evaluate enabled_if and
pick the enabled stanza rather than the first one matching by name.

Fixes an internal error (modules_and_obj_dir: failed lookup) when a dune
file defines two libraries with the same name distinguished by mutually
exclusive enabled_if clauses, as ocaml-re does for ppx_expect_common.

Fixes #14775.

(cherry picked from commit b0313ac)
Signed-off-by: Shon Feder <shon.feder@gmail.com>
@shonfeder shonfeder merged commit 730ec22 into main Jul 9, 2026
36 checks passed
@shonfeder shonfeder deleted the backport-14904 branch July 9, 2026 21:32
@shonfeder shonfeder restored the backport-14904 branch July 9, 2026 21:42
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.

2 participants