From 5899308ad371790c4c89399f61a23f6ed1e5d0fc Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Thu, 21 Feb 2013 20:05:11 -0800 Subject: Parallel bootstrap for cmake. --- lib/spack/spack/Package.py | 3 +++ lib/spack/spack/packages/cmake.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/Package.py b/lib/spack/spack/Package.py index e5b2d00943..0455b048c9 100644 --- a/lib/spack/spack/Package.py +++ b/lib/spack/spack/Package.py @@ -131,6 +131,9 @@ class Package(object): self.module.make = MakeExecutable('make', self.parallel) self.module.gmake = MakeExecutable('gmake', self.parallel) + # number of jobs spack prefers to build with. + self.module.make_jobs = multiprocessing.cpu_count() + # Find the configure script in the archive path # Don't use which for this; we want to find it in the current dir. self.module.configure = Executable('./configure') diff --git a/lib/spack/spack/packages/cmake.py b/lib/spack/spack/packages/cmake.py index 57cb0d9cf9..9b75bd6273 100644 --- a/lib/spack/spack/packages/cmake.py +++ b/lib/spack/spack/packages/cmake.py @@ -6,6 +6,7 @@ class Cmake(Package): md5 = '097278785da7182ec0aea8769d06860c' def install(self, prefix): - configure('--prefix=%s' % prefix) + configure('--prefix=%s' % prefix, + '--parallel=%s' % make_jobs) make() make('install') -- cgit v1.2.3-70-g09d2