1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

move extension task into the LoadError protect block

This commit is contained in:
Charles Lowell 2010-03-22 23:08:44 -05:00
parent 6e7eae5bc1
commit 596d7aee6b

View file

@ -1,11 +1,11 @@
begin
gem 'rake-compiler', '>= 0.4.1'
require "rake/extensiontask"
Rake::ExtensionTask.new("v8", $gemspec) do |ext|
ext.lib_dir = "lib/v8"
ext.source_pattern = "*.{cpp,h}"
end
rescue LoadError
puts "Rake Compiler not available. You won't be able to compile with rake, unless you gem install rake-compiler"
end
Rake::ExtensionTask.new("v8", $gemspec) do |ext|
ext.lib_dir = "lib/v8"
ext.source_pattern = "*.{cpp,h}"
end