Skip to content
Snippets Groups Projects
Commit 14424fea authored by Max Howell's avatar Max Howell
Browse files

Determine number of cores using RubyCocoa #win

parent d6141137
No related branches found
No related tags found
No related merge requests found
# 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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment