Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong OS bits size on mingw64 on Windows 10 x64 #32

Open
artemshein opened this issue Feb 16, 2018 · 3 comments
Open

Wrong OS bits size on mingw64 on Windows 10 x64 #32

artemshein opened this issue Feb 16, 2018 · 3 comments

Comments

@artemshein
Copy link

artemshein commented Feb 16, 2018

Same OS, different Rubies (64-bit and 32-bit):
$ uname -a
MINGW64_NT-10.0 name 2.5.0(0.295/5/3) 2016-03-31 18:47 x86_64 Msys
$ ruby -e 'require "os";p RUBY_PLATFORM;p OS.bits'
"x64-mingw32"
64
$ ruby -e 'require "os";p RUBY_PLATFORM;p OS.bits'
"i386-mingw32"
32

@artemshein
Copy link
Author

The only solution I found is:

def is_64bit_win?
  ENV.has_key?('ProgramFiles(x86)')
end

Ugly, but works

@rdp
Copy link
Owner

rdp commented Feb 20, 2018 via email

@rdp
Copy link
Owner

rdp commented Apr 26, 2019

pr welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants