diff options
| author | Misty De Meo | 2013-08-14 20:05:54 -0700 |
|---|---|---|
| committer | Misty De Meo | 2013-08-15 22:46:57 -0700 |
| commit | 86e3290ab3896a60473dc4cc66595a1b02a883d8 (patch) | |
| tree | e02d0eb83eae65365efd2d9b00308772a9c216e6 | |
| parent | 5ca53b01054ffc62d805b052ff69bcb7084f1c24 (diff) | |
| download | homebrew-86e3290ab3896a60473dc4cc66595a1b02a883d8.tar.bz2 | |
LinuxCPUs: provide stub methods
| -rw-r--r-- | Library/Homebrew/os/linux/hardware.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/os/linux/hardware.rb b/Library/Homebrew/os/linux/hardware.rb index 8c7f0d401..9f16ffd1f 100644 --- a/Library/Homebrew/os/linux/hardware.rb +++ b/Library/Homebrew/os/linux/hardware.rb @@ -2,6 +2,11 @@ module LinuxCPUs OPTIMIZATION_FLAGS = {}.freeze def optimization_flags; OPTIMIZATION_FLAGS; end + # Linux supports x86 only, and universal archs do not apply + def arch_32_bit; :i386; end + def arch_64_bit; :x86_64; end + def universal_archs; []; end + def type @cpu_type ||= case `uname -m` when /i[3-6]86/, /x86_64/ |
