Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(melange): use output of virtual library when compiling its source #11248

Conversation

anmonteiro
Copy link
Collaborator

No description provided.

@anmonteiro anmonteiro changed the title test(melange): show crash when depending on public virtual lib impl fix(melange): use output of virtual library when compiling its source Dec 27, 2024
@@ -597,6 +597,7 @@ let setup_js_rules_libraries =
in
cmj_includes ~requires_link ~scope lib_config
in
let output = output_of_lib ~target_dir vlib in
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix explanation: the output in scope was for output_of_lib ~target_dir lib instead of vlib.

@anmonteiro anmonteiro added the melange Melange rules and generator label Dec 27, 2024
@anmonteiro
Copy link
Collaborator Author

ok I believe this also fixes #11247

@anmonteiro anmonteiro force-pushed the anmonteiro/melange-test-virtual-library-compilation-paths-public-impl branch from a19b99d to 8ae566f Compare December 29, 2024 05:59
@anmonteiro anmonteiro merged commit f0137df into ocaml:main Dec 29, 2024
26 of 27 checks passed
@anmonteiro anmonteiro deleted the anmonteiro/melange-test-virtual-library-compilation-paths-public-impl branch December 29, 2024 06:25
@anmonteiro anmonteiro mentioned this pull request Jan 21, 2025
7 tasks
anmonteiro added a commit to anmonteiro/dune that referenced this pull request Jan 22, 2025
…ocaml#11248)

* test(melange): show crash when depending on public virtual lib impl

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

* fix(melange): use output of virtual library when compiling its source
modules

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

* chore: add changelog entry

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

---------

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
maiste pushed a commit that referenced this pull request Jan 23, 2025
…piling its source (#11371)

* test(melange): show crash when depending on public virtual lib impl
* fix(melange): use output of virtual library when compiling its source
modules
* chore: add changelog entry
--------
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
maiste added a commit to maiste/opam-repository that referenced this pull request Jan 23, 2025
CHANGES:

### Fixed

- Fix a crash in the Melange rules that would prevent compiling public library
implementations of virtual libraries. (@amonteiro, ocaml/dune#11248)
- Pass `melange.emit`'s `compile_flags` to the JS emission phase. (@amonteiro,
ElectreAAS pushed a commit to ElectreAAS/dune that referenced this pull request Jan 27, 2025
…ocaml#11248)

* test(melange): show crash when depending on public virtual lib impl

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

* fix(melange): use output of virtual library when compiling its source
modules

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

* chore: add changelog entry

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

---------

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
chris-armstrong pushed a commit to chris-armstrong/dune that referenced this pull request Jan 29, 2025
…ocaml#11248)

* test(melange): show crash when depending on public virtual lib impl

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

* fix(melange): use output of virtual library when compiling its source
modules

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

* chore: add changelog entry

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

---------

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Signed-off-by: Chris Armstrong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
melange Melange rules and generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants