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

Improved separate compilation #43

Merged
merged 5 commits into from
Sep 13, 2024
Merged

Improved separate compilation #43

merged 5 commits into from
Sep 13, 2024

Conversation

vouillon
Copy link
Collaborator

@vouillon vouillon commented Jun 4, 2024

  • A single wasm file is generated for each cma archive, which avoid having to load too many module.
  • Support linking wasmo files into one wasma file. One can do:
    wasm_of_ocaml a.cmo
    wasm_of_ocaml b.cmo
    wasm_of_ocaml link -a -o foo.wasma a.wasmo b.wasmo
    
    instead of:
    ocamlc -a foo.cma a.cmo b.cmo
    wasm_of_ocaml link -o foo.wasma foo.cma
    
    This allows to make separate compilation more fine-grained, only regenerating Wasml code for modified files.
    See Improve incrementality of jsoo build ocaml/dune#7389

@vouillon vouillon force-pushed the separate-compilation-v2 branch 4 times, most recently from 7b17c6d to 6589d91 Compare June 6, 2024 15:26
@vouillon vouillon force-pushed the separate-compilation-v2 branch 3 times, most recently from f692e7d to b018d1d Compare July 3, 2024 15:03
@vouillon vouillon force-pushed the separate-compilation-v2 branch 2 times, most recently from ca12a8e to 7d52729 Compare July 19, 2024 12:09
@vouillon vouillon force-pushed the separate-compilation-v2 branch 5 times, most recently from 9bc3b3f to e87aede Compare September 13, 2024 11:35
@vouillon vouillon merged commit b2ab3a2 into main Sep 13, 2024
4 checks passed
@vouillon vouillon deleted the separate-compilation-v2 branch September 13, 2024 12:35
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