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

11 lines
335 B
Ruby
Raw Normal View History

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