When running ./build-and-run it took so many seconds to build nginx! This PR makes it faster by building in parallel using all available CPUs. I only filled in the code to get the right number of CPUs for macOS since that's all I'm familiar with; I leave it as a task for other contributors to add the necessary code to detect it on other operating systems (nproc?).
When running
./build-and-run
it took so many seconds to build nginx! This PR makes it faster by building in parallel using all available CPUs. I only filled in the code to get the right number of CPUs for macOS since that's all I'm familiar with; I leave it as a task for other contributors to add the necessary code to detect it on other operating systems (nproc
?).