diff options
author | Alexander Polcyn <apolcyn@google.com> | 2016-10-12 15:56:39 -0700 |
---|---|---|
committer | Alexander Polcyn <apolcyn@google.com> | 2016-10-12 15:56:39 -0700 |
commit | 9d45c051e7b7770dd1a799de3ac32eb4fba1f79a (patch) | |
tree | bf85dcba043551f0fe42fd8337258275f91bf9ba /src/ruby/tools | |
parent | fb4509bd73fde1525b07c74b2446c1c365e4f26c (diff) |
enumerate more x86 cpus in ruby tools package
Diffstat (limited to 'src/ruby/tools')
-rw-r--r-- | src/ruby/tools/platform_check.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ruby/tools/platform_check.rb b/src/ruby/tools/platform_check.rb index c058deb5f5..19ea2a07fc 100644 --- a/src/ruby/tools/platform_check.rb +++ b/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' |