Sha256: 3466f5b18ba25238da375e58f864f67e1f6b51d63e3284fec1df62c2573d8542

Contents?: true

Size: 470 Bytes

Versions: 32

Compression:

Stored size: 470 Bytes

Contents

require 'rubygems'

module Libv8
  module Arch
    module_function

    def libv8_arch
      case Gem::Platform.local.cpu
      when /^arm(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
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
libv8-5.6.326.50.0beta1-x86_64-darwin-16 ext/libv8/arch.rb
libv8-5.6.326.50.0beta1-x86_64-darwin-15 ext/libv8/arch.rb
libv8-5.6.326.50.0beta1-x86_64-darwin-14 ext/libv8/arch.rb
libv8-5.6.326.50.0beta1-x86_64-linux ext/libv8/arch.rb
libv8-5.6.326.50.0beta1 ext/libv8/arch.rb
libv8-5.3.332.38.5-arm-linux ext/libv8/arch.rb
libv8-5.3.332.38.5-x86-linux ext/libv8/arch.rb
libv8-5.3.332.38.5-x86_64-linux ext/libv8/arch.rb
libv8-5.3.332.38.5-x86_64-darwin-16 ext/libv8/arch.rb
libv8-5.3.332.38.5-x86_64-darwin-15 ext/libv8/arch.rb
libv8-5.3.332.38.5-x86_64-darwin-14 ext/libv8/arch.rb
libv8-5.3.332.38.5-universal-darwin-16 ext/libv8/arch.rb
libv8-5.3.332.38.5-universal-darwin-15 ext/libv8/arch.rb
libv8-5.3.332.38.5-universal-darwin-14 ext/libv8/arch.rb
libv8-5.3.332.38.5 ext/libv8/arch.rb
libv8-5.3.332.38.5-armv7l-linux ext/libv8/arch.rb
libv8-5.3.332.38.5-amd64-freebsd-11 ext/libv8/arch.rb
libv8-5.3.332.38.5-amd64-freebsd-10 ext/libv8/arch.rb
libv8-5.3.332.38.4 ext/libv8/arch.rb
libv8-5.3.332.38.3-arm-linux ext/libv8/arch.rb