mirror of
https://github.com/rubyjs/libv8
synced 2023-03-27 23:21:48 -04:00
Let ruby load the devkit instead of trying to find it ourselves.
This commit is contained in:
parent
1ac702a107
commit
59f0250a9b
2 changed files with 11 additions and 2 deletions
12
Rakefile
12
Rakefile
|
@ -21,7 +21,7 @@ task :checkout do
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "compile v8 via the ruby extension mechanism"
|
desc "compile v8 via the ruby extension mechanism"
|
||||||
task :compile do
|
task :compile => :devkit do
|
||||||
sh "ruby ext/libv8/extconf.rb"
|
sh "ruby ext/libv8/extconf.rb"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -77,5 +77,15 @@ task :clean do
|
||||||
sh "cd #{GYP_Source} && git checkout -f && git clean -dxf"
|
sh "cd #{GYP_Source} && git checkout -f && git clean -dxf"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :devkit do
|
||||||
|
begin
|
||||||
|
if RUBY_PLATFORM =~ /mingw/
|
||||||
|
require "devkit"
|
||||||
|
end
|
||||||
|
rescue LoadError => e
|
||||||
|
abort "Failed to activate RubyInstaller's DevKit required for compilation."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
task :default => [:checkout, :compile, :spec]
|
task :default => [:checkout, :compile, :spec]
|
||||||
task :build => [:clean, :checkout]
|
task :build => [:clean, :checkout]
|
||||||
|
|
|
@ -18,7 +18,6 @@ environment:
|
||||||
# scripts that run after cloning repository
|
# scripts that run after cloning repository
|
||||||
install:
|
install:
|
||||||
- set PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
- set PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
||||||
- C:\Ruby%ruby_version%\DevKit\devkitvars.bat
|
|
||||||
- git submodule update --init
|
- git submodule update --init
|
||||||
- ruby --version
|
- ruby --version
|
||||||
- gem --version
|
- gem --version
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue