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

Commit fa2787a

Browse files
committed
Add dependency back on libv8
therubyracer now delegates all lookup for its v8 compilation dependencies to the libv8 gem. if you pass the --with-system-v8 flag to the libv8 gem on install, try to configure therubyracer upon compile with the following options. --with-v8-include, --with-v8-lib and --with-v8-dir Otherwise, it will configure therubyracer to use the vendored version of v8.
1 parent 040bcf3 commit fa2787a

4 files changed

Lines changed: 10 additions & 12 deletions

File tree

Gemfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,3 @@ gem "rake"
77
gem "rspec", "~> 2.0"
88
gem "rake-compiler"
99
gem 'gem-compiler' unless Object.const_defined?(:RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
10-
11-
group :libv8 do
12-
gem 'libv8', "~> 3.11.8"
13-
end
14-
15-
16-

ext/v8/extconf.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@
1616
if enable_config('debug')
1717
$CFLAGS += " -O0 -ggdb3"
1818
end
19-
if have_rubygem_libv8?
20-
build_with_rubygem_libv8
21-
else
22-
build_with_system_libv8
19+
20+
begin
21+
require 'libv8'
22+
rescue LoadError
23+
require 'rubygems'
24+
gem 'libv8'
25+
require 'libv8'
2326
end
27+
Libv8.configure_makefile
2428

2529
create_makefile('v8/init')

lib/v8/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module V8
2-
VERSION = "0.11.0"
2+
VERSION = "0.11.1beta1"
33
end

therubyracer.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ Gem::Specification.new do |gem|
1717
gem.version = V8::VERSION
1818

1919
gem.add_dependency 'ref'
20+
gem.add_dependency 'libv8', '~> 3.11.8.5'
2021
end

0 commit comments

Comments
 (0)