Συντάκτης: Eric Voskuil Ημερομηνία: Προς: mlmikael, libbitcoin Αντικείμενο: Re: [Libbitcoin] ML,
what do you think about this feature request: Give install.sh
script an argument to override the JOBS("-j") count,
as not to crash build machine
Thanks. I've modified the install script generation to incorporate
consideration of a shell-defined $PARALLEL environment variable:
This will eventually make its way into the various repo install.sh
scripts. If this variable is defined it will override core detection. We
could alternatively make this a script command line option, but this was
the simplest quick fix.
e
On 01/20/2016 04:29 AM, mlmikael wrote: > 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?