diff options
author | Simao Gomes Viana | 2019-11-04 23:26:37 +0100 |
---|---|---|
committer | Simao Gomes Viana | 2019-11-04 23:26:37 +0100 |
commit | 5c59798fc20f27c42e694d3a07aa27b8e0b1e067 (patch) | |
tree | bef99f88ebc4eea542004a83f62aa58a3c1ef4e2 | |
parent | 7c191704d1f88ab074f1de63261c3e69a91dfa53 (diff) | |
download | aur-5c59798fc20f27c42e694d3a07aa27b8e0b1e067.tar.gz |
detect MAKEFLAGS -j, add it automatically if nonexist.
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -58,7 +58,11 @@ build() { cd "${_srcname}" make CC=clang nitrous_defconfig - make ${MAKEFLAGS} CC=clang bzImage modules + makeflags="${MAKEFLAGS}" + if [[ "$MAKEFLAGS" != *"-j"* ]]; then + makeflags="$makeflags -j$(nproc --all)" + fi + make ${makeflags} CC=clang bzImage modules } _package() { |