mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
Make the build process honor v8 compatibility
Add selection of the proper version of the libv8 gem before requiring it. This commit fixes #231, and fixes #232 which is a duplicate.
This commit is contained in:
parent
93a2c7792f
commit
4cdc844534
1 changed files with 2 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
|||
require 'mkmf'
|
||||
require File.expand_path '../build', __FILE__
|
||||
|
||||
have_library('pthread')
|
||||
have_library('objc') if RUBY_PLATFORM =~ /darwin/
|
||||
|
@ -17,13 +16,10 @@ if enable_config('debug')
|
|||
$CFLAGS += " -O0 -ggdb3"
|
||||
end
|
||||
|
||||
begin
|
||||
require 'libv8'
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
gem 'libv8'
|
||||
gem 'libv8', '~> 3.15.11'
|
||||
require 'libv8'
|
||||
end
|
||||
|
||||
Libv8.configure_makefile
|
||||
|
||||
create_makefile('v8/init')
|
||||
|
|
Loading…
Add table
Reference in a new issue