aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2017-01-13 09:42:12 -0800
committerGravatar Alexander Polcyn <apolcyn@google.com>2017-01-13 09:42:12 -0800
commitaaddb5cb93bd983265002f189ae65e72765c36a5 (patch)
tree35b6f7c6a4cf770ba3134b7bad74afd687f0ddb2 /src/ruby
parent0da964435445bcddcb1fecf55283bcf7e347a509 (diff)
continue use of host_cpu and use x86 whenever not x86_64
Diffstat (limited to 'src/ruby')
-rw-r--r--src/ruby/tools/platform_check.rb8
1 files changed, 3 insertions, 5 deletions
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