mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
require rubygems before activating libv8
This commit is contained in:
parent
ffdceb0d2a
commit
a318291c5a
1 changed files with 3 additions and 0 deletions
|
@ -2,10 +2,13 @@
|
||||||
LIBV8_COMPATIBILITY = '~> 3.11.8'
|
LIBV8_COMPATIBILITY = '~> 3.11.8'
|
||||||
|
|
||||||
def have_rubygem_libv8?
|
def have_rubygem_libv8?
|
||||||
|
require 'rubygems'
|
||||||
gem 'libv8', LIBV8_COMPATIBILITY
|
gem 'libv8', LIBV8_COMPATIBILITY
|
||||||
return true
|
return true
|
||||||
rescue Gem::LoadError
|
rescue Gem::LoadError
|
||||||
return false
|
return false
|
||||||
|
rescue LoadError
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_with_system_libv8
|
def build_with_system_libv8
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue