From 4cdc84453448d45fffc8045118ffcfee77cd1506 Mon Sep 17 00:00:00 2001 From: ignisf Date: Sat, 12 Jan 2013 20:12:43 +0200 Subject: [PATCH] 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. --- ext/v8/extconf.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ext/v8/extconf.rb b/ext/v8/extconf.rb index 6590f43..1854a39 100644 --- a/ext/v8/extconf.rb +++ b/ext/v8/extconf.rb @@ -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')