dist/redhat/scylla-server.spec: Limit ninja-build jobs

Our C++ compilation takes up so much memory that we cannot really use
RPM defaults. Limit the number of jobs to 2 for now to fix SIGBUS errors
in VMs as well as swap storm when building with mock.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
This commit is contained in:
Pekka Enberg
2015-09-03 11:53:50 +03:00
parent ed78ace390
commit e536d57872

View File

@@ -24,7 +24,7 @@ Provides: cassandra21
%build
./configure.py --with scylla --disable-xen --enable-dpdk --mode=release
ninja-build %{?_smp_mflags}
ninja-build -j2
%install
rm -rf $RPM_BUILD_ROOT