diff --git a/data/tutorials/platform/0_03_run_executables_and_tests.md b/data/tutorials/platform/0_03_run_executables_and_tests.md index 171f6fa19b..29fc54de73 100644 --- a/data/tutorials/platform/0_03_run_executables_and_tests.md +++ b/data/tutorials/platform/0_03_run_executables_and_tests.md @@ -39,6 +39,15 @@ For instance, if you've put your `dune` file in `bin/dune` with the following co You can run it with `dune exec bin/main.exe` or `dune exec my-app`. +## Automatic Recompiling on File Changes + +Compiling a project with `dune exec .exe` can take time, especially with many files. To speed this up, you can use `dune build --watch`, which automatically recompiles files as they change. + +Keep in mind: + +* `dune build --watch` monitors files and triggers necessary recompilation. +* Dune locks the build directory, so you can't run two Dune commands simultaneously. +* To run the application, stop the watch process (Ctrl-C) or execute the app directly with `_build\default\.exe`. ## Running Tests > **TL;DR**