summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarshit Shah2018-06-01 00:12:24 +0200
committerDarshit Shah2018-06-01 00:12:24 +0200
commit11a7536a0d3991169a8de473ff295391c6f23947 (patch)
tree87f10facc72b293701c17903730d6b9921f2f841
parenta58c01881dfdec2ddfa7fb66b206ecca6a33849d (diff)
downloadaur-11a7536a0d3991169a8de473ff295391c6f23947.tar.gz
Support case when MAKEFLAGS isn't set
-rw-r--r--PKGBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 194f7391a7f..92bf2780879 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -56,7 +56,7 @@ build() {
export TF_NEED_CUDA=0
./configure
- bazel build --config=opt --jobs=$MAKEFLAGS //tensorflow:libtensorflow.so //tensorflow/tools/pip_package:build_pip_package
+ bazel build --config=opt ${MAKEFLAGS:--j$(nproc)} //tensorflow:libtensorflow.so //tensorflow/tools/pip_package:build_pip_package
bazel-bin/tensorflow/tools/pip_package/build_pip_package ${srcdir}/tmp
}