ocaml / ocaml/dune

Built-in dependency that says if the current build is processing any changes

Open
#3,159 14 comments 0 reactions 1 assignee View on GitHub

@voodoos is already working on this.

Since Apr 9, 2020.

  • #3523 by @voodoos — closed without merging
engine enhancement performance
Dominant language
OCaml
Stars
1.9k
Forks
500
Avg merge
15h 21m
Merged PRs (30d)
277

Description

Firstly, thanks for making dune. It roolz!

Desired Behavior

I'm currently depending on universe to cause a build-info file to be re-generated on each dune build.

See more background here: https://discuss.ocaml.org/t/rebuilding-a-build-info-module-every-time-an-exe-is-produced/4954/3

This works, it definitely causes a rebuild if stuff anywhere else in the repo change, which is needed for a proper build-info. What it also does is rebuild even if nothing changes, which isn't great if you have several hundred .exe files to build. That is, a make followed by make does a lot of extra work, rebuilding binaries that didn't change.

Example

Something like, say, work-to-do if dune detects any source files have changed instead of universe would be grand.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.