diff options
| author | Mike McQuaid | 2013-05-11 12:18:25 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2013-05-11 12:18:25 +0100 | 
| commit | 646150ade992c0af25c2d6ca906b436c6fda025d (patch) | |
| tree | 301b1d59187712830fef71e71a1b4de8ee09c0fb /Library/Homebrew/macos.rb | |
| parent | 8e2cce64a7e2c9648956c5bb0b51103827f5c501 (diff) | |
| download | homebrew-646150ade992c0af25c2d6ca906b436c6fda025d.tar.bz2 | |
Fix --build-bottle CFLAGS.
The CFLAGS were previously not generic enough.
References #18944.
References #19179.
Diffstat (limited to 'Library/Homebrew/macos.rb')
| -rw-r--r-- | Library/Homebrew/macos.rb | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb index 802da0de6..bae263f37 100644 --- a/Library/Homebrew/macos.rb +++ b/Library/Homebrew/macos.rb @@ -34,6 +34,18 @@ module MacOS extend self      cat.to_s.gsub('_', '').to_sym    end +  def oldest_cpu +    if Hardware::CPU.type == :intel +      if Hardware::CPU.is_64_bit? +        :core2 +      else +        :core +      end +    else +      Hardware::CPU.family +    end +  end +    def locate tool      # Don't call tools (cc, make, strip, etc.) directly!      # Give the name of the binary you look for as a string to this method  | 
