From e4dd7dadf4f52a2afef0fcd826d8c85ec13cd904 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 21 Feb 2017 14:52:36 +0100 Subject: [PATCH] RPM build: Use parallel make --- nix.spec.in | 2 +- release.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nix.spec.in b/nix.spec.in index 2447f13a8..0c9b9ab20 100644 --- a/nix.spec.in +++ b/nix.spec.in @@ -107,7 +107,7 @@ extraFlags= %configure --localstatedir=/nix/var \ --docdir=%{_defaultdocdir}/%{name}-doc-%{version} \ $extraFlags -make %{?_smp_flags} +make -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES %{_emacs_bytecompile} misc/emacs/nix-mode.el diff --git a/release.nix b/release.nix index 8d71cc841..0b5b5579b 100644 --- a/release.nix +++ b/release.nix @@ -284,9 +284,10 @@ let { extraPackages = [ "perl-DBD-SQLite" "perl-devel" "sqlite" "sqlite-devel" "bzip2-devel" "emacs" "libcurl-devel" "openssl-devel" "xz-devel" ] ++ extraPackages; }; - memSize = 1024; + memSize = 8192; meta.schedulingPriority = 50; postRPMInstall = "cd /tmp/rpmout/BUILD/nix-* && make installcheck"; + enableParallelBuilding = true; };