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:
parent
6e7eae5bc1
commit
596d7aee6b
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
Loading…
Reference in a new issue