Sha256: 58827f6e68add4cf485c4908fbe0348e03fee6e1983ed7bf1f5ec0040af5a535
Contents?: true
Size: 657 Bytes
Versions: 15
Compression:
Stored size: 657 Bytes
Contents
require 'mkmf' require 'set' UPSTREAM = File.expand_path(File.dirname(__FILE__) + "/upstream") BUILD = "#{UPSTREAM}/build/v8" puts "Compiling V8" system("cd #{UPSTREAM} && make") or raise "Error compiling V8" find_header('v8.h', "#{BUILD}/include") have_library('pthread') have_library('objc') if RUBY_PLATFORM =~ /darwin/ $CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall" $CPPFLAGS += " -g" unless $CPPFLAGS.split.include? "-g" $CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic" $DEFLIBPATH.unshift(BUILD) $LIBS << ' -lv8' CONFIG['LDSHARED'] = '$(CXX) -shared' unless RUBY_PLATFORM =~ /darwin/ create_makefile('v8')
Version data entries
15 entries across 15 versions & 1 rubygems