LinuxCPUs: provide stub methods
This commit is contained in:
parent
1586a69879
commit
e6d5e813d4
@ -2,6 +2,11 @@ module LinuxCPUs
|
|||||||
OPTIMIZATION_FLAGS = {}.freeze
|
OPTIMIZATION_FLAGS = {}.freeze
|
||||||
def optimization_flags; OPTIMIZATION_FLAGS; end
|
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
|
def type
|
||||||
@cpu_type ||= case `uname -m`
|
@cpu_type ||= case `uname -m`
|
||||||
when /i[3-6]86/, /x86_64/
|
when /i[3-6]86/, /x86_64/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user