aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-06-03 19:17:41 +0100
committerMax Howell2009-06-03 19:17:41 +0100
commit14424feab2d9eb9ee7407e8a6b09abae13c83c59 (patch)
tree98ab562d6ff0b5dfcca5ee2ef84c7115832f1e6e
parentd6141137f22fed0f3721b93ac09a719236850d83 (diff)
downloadbrew-14424feab2d9eb9ee7407e8a6b09abae13c83c59.tar.bz2
Determine number of cores using RubyCocoa #win
-rw-r--r--Cellar/homebrew/brewkit.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cellar/homebrew/brewkit.rb b/Cellar/homebrew/brewkit.rb
index b19cfcf66..defdb02f0 100644
--- a/Cellar/homebrew/brewkit.rb
+++ b/Cellar/homebrew/brewkit.rb
@@ -1,6 +1,7 @@
# Copyright 2009 Max Howell <max@methylblue.com>
# Licensed as per the GPL version 3
require 'pathname'
+require 'osx/cocoa' # to get number of cores
HOMEBREW_VERSION='0.1'
@@ -15,7 +16,7 @@ ENV['CFLAGS']=ENV['CXXFLAGS']='-O3 -w -pipe -fomit-frame-pointer -march=prescott
# if I'm wrong
ENV['CC']='gcc-4.2'
ENV['CXX']='g++-4.2'
-ENV['MAKEFLAGS']='-j2'
+ENV['MAKEFLAGS']="-j#{OSX::NSProcessInfo.processInfo.processorCount}"
unless $root.to_s == '/usr/local'
ENV['CPPFLAGS']='-I'+$root+'include'