Use automagic MAKEOPTS

This commit is contained in:
hasufell 2015-11-10 14:19:19 +01:00
parent bfa8deeb97
commit e0f5da3216
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

2
bashrc
View File

@ -3,7 +3,7 @@ CXX=clang++
CFLAGS="-O2 -pipe -Wall"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j4"
MAKEOPTS="${MAKEOPTS:--j$(nproc 2>/dev/null || echo '1')}"
# cmake
CMAKE_MAKEFILE_GENERATOR="ninja"