From 978844e9e28800cead326207ad7b90dd1c6e5ff5 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sat, 6 Feb 2016 15:22:21 +0900 Subject: [PATCH] Prepend DevKit --- Rakefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Rakefile b/Rakefile index e1cd2736..72080725 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,21 @@ require 'bundler/setup' require 'bundler/gem_tasks' + +# +# Prepend DevKit into compilation phase +# +if Gem.win_platform? + desc 'Activates DevKit' + task :devkit do + begin + require 'devkit' + rescue LoadError + abort 'Failed to load DevKit required for compilation' + end + end + task compile: :devkit +end + require 'rake/testtask' require 'rake/extensiontask'