Sha256: dcb8f866b9dc5e3ae78c08066e8a8909585dbdc92508bf851f7c0ad25a2878b9

Contents?: true

Size: 574 Bytes

Versions: 5

Compression:

Stored size: 574 Bytes

Contents

require File.expand_path '../compiler', __FILE__
require File.expand_path '../arch', __FILE__
require File.expand_path '../make', __FILE__

module Libv8
  class Builder
    include Libv8::Arch
    include Libv8::Compiler
    include Libv8::Make

    def build_libv8!
      profile = enable_config('debug') ? 'debug' : 'release'

      Dir.chdir(File.expand_path '../../../vendor/v8', __FILE__) do
        puts `env CXX=#{compiler} LINK=#{compiler} #{make} #{libv8_arch}.#{profile} GYPFLAGS="-Dhost_arch=#{libv8_arch}"`
      end
      return $?.exitstatus
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
libv8-3.11.8.11 ext/libv8/builder.rb
libv8-3.11.8.10 ext/libv8/builder.rb
libv8-3.11.8.9 ext/libv8/builder.rb
libv8-3.11.8.8 ext/libv8/builder.rb
libv8-3.11.8.7 ext/libv8/builder.rb