Module: Libv8::Arch

Included in:
Builder
Defined in:
ext/libv8/arch.rb

Class Method Summary collapse

Class Method Details

.libv8_archObject



7
8
9
10
11
12
13
14
15
16
17
# File 'ext/libv8/arch.rb', line 7

def libv8_arch
  case Gem::Platform.local.cpu
  when /^arm$/          then 'arm'
  when /^a(rm|arch)64$/ then 'arm64'
  when /^x86$/          then 'ia32'
  when /^x86_64$/       then 'x64'
  else
    warn "Unsupported target: #{Gem::Platform.local.cpu}"
    Gem::Platform.local.cpu
  end
end