Hi everyone,
Currently, the ./install.sh-script is hardwired to run as many C
compiler instances as there are CPU cores, see:
https://github.com/libbitcoin/libbitcoin-node/blob/a1b661c71bae82c1df4283b50c680a915a057563/install.sh#L65-L74
Since LibBitcoin is a general purpose library, I think it's fair to say
that its build process should be set up in a way that will run on crappy
hardware too.
Currently, if you have 4GB RAM and 16 CPU cores, the build process will
likely kill your machine. Also 2GB RAM and 4 cores.
So for users not to need to patch the install.sh script, I want to check
what you think about the idea, that,
There would be an argument to ./install.sh for overriding how many CPU
cores are used, just like "make" has a "-j" argument.
Thoughts?