Last active
December 15, 2015 10:29
-
-
Save davidshepherd7/5246166 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Changes to defaults for "make" | |
# ============================================================ | |
# How many cores do we have? Find out from /proc/cpuinfo (using regexp matching | |
# the start of info for a new processor). | |
NCORES=`grep --count '^processor[[:space:]]*:' /proc/cpuinfo` | |
# Apparently make runs fastest with one more job than there are cores. | |
NJOBS=$(($NCORES + 1)) | |
export MAKEFLAGS="-j$NJOBS" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment