diff options
author | Alexander Polcyn <apolcyn@google.com> | 2017-01-13 09:42:12 -0800 |
---|---|---|
committer | Alexander Polcyn <apolcyn@google.com> | 2017-01-13 09:42:12 -0800 |
commit | aaddb5cb93bd983265002f189ae65e72765c36a5 (patch) | |
tree | 35b6f7c6a4cf770ba3134b7bad74afd687f0ddb2 /src/ruby | |
parent | 0da964435445bcddcb1fecf55283bcf7e347a509 (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.rb | 8 |
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 |