diff --git a/Formula/boost.rb b/Formula/boost.rb index 4bcc8ef24e..f9bf6b0a79 100644 --- a/Formula/boost.rb +++ b/Formula/boost.rb @@ -57,7 +57,7 @@ class Boost < Formula args = ["--prefix=#{prefix}", "--libdir=#{lib}", - "-j#{Hardware.processor_count}", + "-j#{ENV.make_jobs}", "--layout=tagged", "--user-config=user-config.jam", "threading=multi", diff --git a/Formula/csstidy.rb b/Formula/csstidy.rb index 2e79b3bbc2..289f72db2e 100644 --- a/Formula/csstidy.rb +++ b/Formula/csstidy.rb @@ -8,7 +8,7 @@ class Csstidy < Formula def install arch = Hardware.is_64_bit? ? 'x64' : 'ia32' - system "scons", "-j #{Hardware.processor_count}", + system "scons", "-j #{ENV.make_jobs}", "arch=#{arch}" bin.install "release/csstidy/csstidy" diff --git a/Formula/ledger.rb b/Formula/ledger.rb index 0e6f16d298..13ad3df6e7 100644 --- a/Formula/ledger.rb +++ b/Formula/ledger.rb @@ -19,7 +19,7 @@ class Ledger < Formula else # gmp installs x86_64 only inreplace 'acprep', "'-arch', 'i386', ", "" if Hardware.is_64_bit? - system "./acprep -j#{Hardware.processor_count} opt make -- --prefix=#{prefix}" + system "./acprep -j#{ENV.make_jobs} opt make -- --prefix=#{prefix}" end system 'make' ENV.deparallelize diff --git a/Formula/mkvtoolnix.rb b/Formula/mkvtoolnix.rb index 0c12b973d0..93b7bf6f9f 100644 --- a/Formula/mkvtoolnix.rb +++ b/Formula/mkvtoolnix.rb @@ -17,7 +17,7 @@ class Mkvtoolnix < Formula "--prefix=#{prefix}", "--with-boost-libdir=#{HOMEBREW_PREFIX}/lib", # For non-/usr/local prefix "--with-boost-regex=boost_regex-mt" # via macports - system "./drake -j#{Hardware.processor_count}" + system "./drake -j#{ENV.make_jobs}" system "./drake install" end end diff --git a/Formula/v8.rb b/Formula/v8.rb index 1cbe017b4b..f16aef3993 100644 --- a/Formula/v8.rb +++ b/Formula/v8.rb @@ -9,7 +9,7 @@ class V8 < Formula def install arch = Hardware.is_64_bit? ? 'x64' : 'ia32' - system "scons", "-j #{Hardware.processor_count}", + system "scons", "-j #{ENV.make_jobs}", "arch=#{arch}", "mode=release", "snapshot=on", diff --git a/Formula/v8cgi.rb b/Formula/v8cgi.rb index 1e985784ae..b8be2f0cda 100644 --- a/Formula/v8cgi.rb +++ b/Formula/v8cgi.rb @@ -33,7 +33,7 @@ class V8cgi < Formula args << (ARGV.include? '--with-sqlite') ? 'sqlite=1' : 'sqlite=0' system "scons", - "-j #{Hardware.processor_count}", + "-j #{ENV.make_jobs}", "arch=#{arch}", "library=shared", "socket=1",