Module: Libv8::Arch
- Included in:
- Builder
- Defined in:
- ext/libv8/arch.rb
Class Method Summary collapse
Class Method Details
.libv8_arch ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'ext/libv8/arch.rb', line 7 def libv8_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 |