diff --git a/src/ruby/tools/platform_check.rb b/src/ruby/tools/platform_check.rb
index 2c5ccffdda652be3811f2f3a7ec2ec8b20cf6601..1f4d5a68b71c731c8ebc86c0d22b34e56414192b 100644
--- a/src/ruby/tools/platform_check.rb
+++ b/src/ruby/tools/platform_check.rb
@@ -42,15 +42,13 @@ module PLATFORM
         'linux'
     end
   end
-  
+
   def PLATFORM.architecture
-    case RbConfig::CONFIG['target_cpu']
+    case RbConfig::CONFIG['host_cpu']
       when /x86_64/
         'x86_64'
-      when /x86|i386/
-        'x86'
       else
-        fail 'cpu architecture detection failed'
+        'x86'
     end
   end
 end