From aaddb5cb93bd983265002f189ae65e72765c36a5 Mon Sep 17 00:00:00 2001 From: Alexander Polcyn Date: Fri, 13 Jan 2017 09:42:12 -0800 Subject: continue use of host_cpu and use x86 whenever not x86_64 --- src/ruby/tools/platform_check.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/ruby') diff --git a/src/ruby/tools/platform_check.rb b/src/ruby/tools/platform_check.rb index 2c5ccffdda..1f4d5a68b7 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 -- cgit v1.2.3