Add a note on using ocamlc.opt to HACKING.adoc

master
Stephen Dolan 2019-03-20 16:50:51 +00:00
parent 46c427f519
commit 9acd54e668
1 changed files with 13 additions and 0 deletions

View File

@ -231,6 +231,19 @@ bytecode runtime (which is written in C) has been built to compile the
standard library and then to build a fresh compiler. Details can be
found in link:BOOTSTRAP.adoc[].
=== Speeding up builds
Once you've built a natively-compiled `ocamlc.opt`, you can use it to
speed up future builds by copying it to `boot`:
----
cp ocamlc.opt boot/
----
If `boot/ocamlc` changes (e.g. because you ran `make bootstrap`), then
the build will revert to the slower bytecode-compiled `ocamlc` until
you do the above step again.
=== Continuous integration
==== Github's CI: Travis and AppVeyor