Created
November 13, 2017 08:44
-
-
Save T1T4N/659aca62328b072202e407ad52ce6db4 to your computer and use it in GitHub Desktop.
Multithreaded make on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local NUM_OF_THREADS=$(sysctl hw.ncpu | awk '{print $2}') | |
local MAKEOPTS="${MAKEOPTS:-} -j${NUM_OF_THREADS}" | |
make $MAKEOPTS clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment