Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 59f0250

Browse files
committed
Let ruby load the devkit instead of trying to find it ourselves.
1 parent 1ac702a commit 59f0250

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

Rakefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ task :checkout do
2121
end
2222

2323
desc "compile v8 via the ruby extension mechanism"
24-
task :compile do
24+
task :compile => :devkit do
2525
sh "ruby ext/libv8/extconf.rb"
2626
end
2727

@@ -77,5 +77,15 @@ task :clean do
7777
sh "cd #{GYP_Source} && git checkout -f && git clean -dxf"
7878
end
7979

80+
task :devkit do
81+
begin
82+
if RUBY_PLATFORM =~ /mingw/
83+
require "devkit"
84+
end
85+
rescue LoadError => e
86+
abort "Failed to activate RubyInstaller's DevKit required for compilation."
87+
end
88+
end
89+
8090
task :default => [:checkout, :compile, :spec]
8191
task :build => [:clean, :checkout]

appveyor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ environment:
1818
# scripts that run after cloning repository
1919
install:
2020
- set PATH=C:\Ruby%ruby_version%\bin;%PATH%
21-
- C:\Ruby%ruby_version%\DevKit\devkitvars.bat
2221
- git submodule update --init
2322
- ruby --version
2423
- gem --version

0 commit comments

Comments
 (0)