enumerate more x86 cpus in ruby tools package

pull/8304/head
Alexander Polcyn 8 years ago
parent fb4509bd73
commit 9d45c051e7
  1. 6
      src/ruby/tools/platform_check.rb

@ -42,11 +42,15 @@ module PLATFORM
'linux'
end
end
# The 'host_cpu' value on x86, 32-bit rubies, appears to turn out to
# be the name of the cpu. Only need to know the architecture,
# so enumerating x86 cpu's here.
def PLATFORM.architecture
case RbConfig::CONFIG['host_cpu']
when /x86_64/
'x86_64'
when /x86|i686|i386/
when /x86|i386|i486|i586|i686|i786/
'x86'
else
fail 'cpu architecture detection failed'

Loading…
Cancel
Save