From e6d5e813d45b3ec65ccc393d4341ab9d906274a0 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 14 Aug 2013 20:05:54 -0700 Subject: [PATCH] LinuxCPUs: provide stub methods --- Library/Homebrew/os/linux/hardware.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/os/linux/hardware.rb b/Library/Homebrew/os/linux/hardware.rb index 8c7f0d4018..9f16ffd1f1 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/