The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #14410 from gasche/HACKING.adoc-clean-for-dune

HACKING.adoc: document clean-for-dune

authored by

Gabriel Scherer and committed by
GitHub
f2deaeb0 2e63e0d9

+7 -4
+7 -4
HACKING.adoc
··· 500 500 501 501 ---- 502 502 ./configure # if not already done 503 - make clean && dune build @libs 503 + make clean-for-dune && dune build @libs 504 504 ---- 505 505 506 506 which will do a bytecode build of all the distribution (without linking ··· 511 511 particular, you need to repeat the dune build every time you change the interface 512 512 of some compilation unit, so that merlin is aware of the new interface. 513 513 514 - You only need to run `configure` once, but you will need to run `make clean` 515 - every time you want to run `dune` after you built something with `make`; 516 - otherwise dune will complain that build artefacts are present among the sources. 514 + You only need to run `configure` once, but you will need to run `make 515 + clean-for-dune` every time you want to run `dune` after you built 516 + something with `make`; otherwise dune will complain that build 517 + artefacts are present among the sources. (Not all build artifacts need 518 + to be removed, `clean-for-dune` removes less than `clean` or 519 + `partialclean` and thus Make will rebuild faster.) 517 520 518 521 Finally, there will be times where the compiler simply cannot be built with an 519 522 older version of itself. One example of this is when a new primitive is added to