Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 4cdc844

Browse files
committed
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.
1 parent 93a2c77 commit 4cdc844

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

ext/v8/extconf.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require 'mkmf'
2-
require File.expand_path '../build', __FILE__
32

43
have_library('pthread')
54
have_library('objc') if RUBY_PLATFORM =~ /darwin/
@@ -17,13 +16,10 @@
1716
$CFLAGS += " -O0 -ggdb3"
1817
end
1918

20-
begin
21-
require 'libv8'
22-
rescue LoadError
2319
require 'rubygems'
24-
gem 'libv8'
20+
gem 'libv8', '~> 3.15.11'
2521
require 'libv8'
26-
end
22+
2723
Libv8.configure_makefile
2824

2925
create_makefile('v8/init')

0 commit comments

Comments
 (0)