Skip to content

Commit

Permalink
Additional check if libv8 objects were created
Browse files Browse the repository at this point in the history
  • Loading branch information
stereobooster committed Jun 22, 2012
1 parent 59a445e commit 2ff69a5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions ext/libv8/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
include Libv8::Compiler

Dir.chdir(File.expand_path '../../../vendor/v8', __FILE__) do
puts `env CXX=#{compiler.sub('\\','/')} LINK=#{compiler.sub('\\','/')} #{make.sub('\\','/')} #{libv8_arch}.release GYPFLAGS="-Dhost_arch=#{libv8_arch}"`
puts `env CXX=#{File.basename compiler} LINK=#{File.basename compiler} #{File.basename make} #{libv8_arch}.release GYPFLAGS="-Dhost_arch=#{libv8_arch}"`
end

if $?.exitstatus != 0
exit $?.exitstatus
end

begin
require File.expand_path '../../../lib/libv8', __FILE__
Libv8.libv8_objects
rescue => e
puts e.message
exit 1
end
exit $?.exitstatus

0 comments on commit 2ff69a5

Please sign in to comment.