diff --git a/src/ruby/tools/platform_check.rb b/src/ruby/tools/platform_check.rb
index <HASH>..<HASH> 100644
--- a/src/ruby/tools/platform_check.rb
+++ b/src/ruby/tools/platform_check.rb
@@ -43,14 +43,11 @@ module PLATFORM
     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']
+    case RbConfig::CONFIG['target_cpu']
       when /x86_64/
         'x86_64'
-      when /x86|i386|i486|i586|i686|i786/
+      when /x86|i386/
         'x86'
       else
         fail 'cpu architecture detection failed'
use target cpu to get rid of cpu enumerations