diff options
| author | Misty De Meo | 2013-08-11 19:11:58 -0700 |
|---|---|---|
| committer | Misty De Meo | 2013-08-15 22:46:56 -0700 |
| commit | 1470fd3f0f992ad2dd14d173710b630cf64a9b80 (patch) | |
| tree | 2f4f1459709baa45add4f19b262f866c74aef332 /Library/Homebrew/hardware.rb | |
| parent | 7583729b2055bdea7c44541e3d1851f447090b5e (diff) | |
| download | homebrew-1470fd3f0f992ad2dd14d173710b630cf64a9b80.tar.bz2 | |
Mach: improve PPC arch detection
Also adds some reusable constants into the global Hardware::CPU
namespace, available on both OS X and Linux.
Diffstat (limited to 'Library/Homebrew/hardware.rb')
| -rw-r--r-- | Library/Homebrew/hardware.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb index 815f4dbc0..44642d44f 100644 --- a/Library/Homebrew/hardware.rb +++ b/Library/Homebrew/hardware.rb @@ -1,5 +1,10 @@ class Hardware module CPU extend self + INTEL_32BIT_ARCHS = [:i386].freeze + INTEL_64BIT_ARCHS = [:x86_64].freeze + PPC_32BIT_ARCHS = [:ppc, :ppc7400, :ppc7450, :ppc970].freeze + PPC_64BIT_ARCHS = [:ppc64].freeze + def type @type || :dunno end |
