Reduce the degree of make parallelism in examples

And add a warning to not do this if it's not supported.
This commit is contained in:
Vadim Zeitlin 2023-12-12 20:10:40 +01:00
parent 1d9fe90224
commit 30994678c4
2 changed files with 8 additions and 2 deletions

View file

@ -26,7 +26,10 @@ number of the processors in your system (which can be checked using `sysctl -n
hw.ncpu` command if you are not sure), as this will dramatically speed up the
build on modern systems. So in practice you should use a command like this:
make -j16
make -j8
(but don't use it unless you actually have 8 CPUs and enough memory for that
many parallel compiler invocations).
You may also prefer to add `-s` option to avoid normal output from make and/or
redirect it you to a log file for further inspection.