mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Prepend DevKit
This commit is contained in:
parent
609b3a6e4a
commit
978844e9e2
1 changed files with 16 additions and 0 deletions
16
Rakefile
16
Rakefile
|
@ -1,5 +1,21 @@
|
||||||
require 'bundler/setup'
|
require 'bundler/setup'
|
||||||
require 'bundler/gem_tasks'
|
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/testtask'
|
||||||
require 'rake/extensiontask'
|
require 'rake/extensiontask'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue