Module: LibSqreen::Arch
- Defined in:
- ext/libsqreen/arch.rb
Class Method Summary collapse
Class Method Details
.libsqreen_arch ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'ext/libsqreen/arch.rb', line 10 def libsqreen_arch case Gem::Platform.local.cpu when /^arm(v6.*|v7.*)*$/ then 'arm' when /^a(rm|arch)64$/ then 'arm64' when /^x86$/ then 'ia32' when /^(x86_64|amd64)$/ then 'x64' when /^universal$/ then 'x64' # OS X else warn "Unsupported target: #{Gem::Platform.local.cpu}" Gem::Platform.local.cpu end end |