guayadeque
guayadeque copied to clipboard
Suggestion: Enable parallel builds with make -j NUMBER in build
On my machine the provided build file compiles a lot faster when I add -j 4 to the make command.
In general one could add -j `nproc` :
./buildt
rm CMakeCache.txt
cmake . \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_STANDARD="11" \
&& make -j `nproc`
But I have an SSD and a nice CPU as well (https://stackoverflow.com/questions/2499070/gnu-make-should-the-number-of-jobs-equal-the-number-of-cpu-cores-in-a-system)
I would rather use the system environment variable MAKEFLAGS to set such a flag. E.g. in Arch Linux you have the /etc/makepkg.conf to set it.