Add MAKEOPTS for Mac OS
This commit is contained in:
parent
d2191564a4
commit
1a82638336
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
|||
export EDITOR="vim"
|
||||
|
||||
|
||||
if [ $(uname -s) = "Darwin" ]; then
|
||||
export MAKEOPTS="-j$(sysctl -n hw.ncpu)"
|
||||
else
|
||||
export MAKEOPTS="-j$(cat /proc/cpuinfo | awk -F: '$1 ~ /cpu cores/ { print $2 }' | head -n 1 | tr -d ' ')"
|
||||
fi
|
||||
|
||||
export CFLAGS="-march=native -O2"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
|
||||
|
|
Loading…
Reference in a new issue