summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCharlie Savage <cfis@savagexi.com>2020-05-17 23:54:39 -0700
committerCharlie Savage <cfis@savagexi.com>2020-05-17 23:54:39 -0700
commit481adbcdfc816a94bde5c695a175807a00bc8ff2 (patch)
tree183b6b664e1a02281791ec879349cac1aa991429 /lib
parent33fb45a80e20fd9d9c39de3753abca9b4ef3abe7 (diff)
downloadffi-481adbcdfc816a94bde5c695a175807a00bc8ff2.tar.gz
Ruby built with MSVC reports the x64 as the platform on Windows 10, 64-bit machines.
Diffstat (limited to 'lib')
-rw-r--r--lib/ffi/platform.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ffi/platform.rb b/lib/ffi/platform.rb
index 3e0fc60..85e3b25 100644
--- a/lib/ffi/platform.rb
+++ b/lib/ffi/platform.rb
@@ -61,7 +61,7 @@ module FFI
CPU = RbConfig::CONFIG['host_cpu']
ARCH = case CPU.downcase
- when /amd64|x86_64/
+ when /amd64|x86_64|x64/
"x86_64"
when /i?86|x86|i86pc/
"i386"