Determine number of cores using RubyCocoa #win

This commit is contained in:
Max Howell 2009-06-03 19:17:41 +01:00
parent d6141137f2
commit 14424feab2

View File

@ -1,6 +1,7 @@
# Copyright 2009 Max Howell <max@methylblue.com> # Copyright 2009 Max Howell <max@methylblue.com>
# Licensed as per the GPL version 3 # Licensed as per the GPL version 3
require 'pathname' require 'pathname'
require 'osx/cocoa' # to get number of cores
HOMEBREW_VERSION='0.1' HOMEBREW_VERSION='0.1'
@ -15,7 +16,7 @@ ENV['CFLAGS']=ENV['CXXFLAGS']='-O3 -w -pipe -fomit-frame-pointer -march=prescott
# if I'm wrong # if I'm wrong
ENV['CC']='gcc-4.2' ENV['CC']='gcc-4.2'
ENV['CXX']='g++-4.2' ENV['CXX']='g++-4.2'
ENV['MAKEFLAGS']='-j2' ENV['MAKEFLAGS']="-j#{OSX::NSProcessInfo.processInfo.processorCount}"
unless $root.to_s == '/usr/local' unless $root.to_s == '/usr/local'
ENV['CPPFLAGS']='-I'+$root+'include' ENV['CPPFLAGS']='-I'+$root+'include'