Sha256: 646f619dac053081565d8c770a19593aad0e9f57dde6aeb6c9f9f0ddaa160c56

Contents?: true

Size: 720 Bytes

Versions: 2

Compression:

Stored size: 720 Bytes

Contents

require 'mkmf'
require 'set'

UPSTREAM = File.expand_path(File.dirname(__FILE__) + "/upstream")
BUILD = "#{UPSTREAM}/build/v8"

unless RUBY_PLATFORM =~ /x86_64-linux/
    puts "Compiling V8"
    system("cd #{UPSTREAM} && make clean && make") or raise "Error compiling V8"
end

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

2 entries across 2 versions & 1 rubygems

Version Path
therubyracer-heroku-0.8.1.pre3 ext/v8/extconf.rb
therubyracer-heroku-0.8.1.pre2 ext/v8/extconf.rb