Skip to content

Commit

Permalink
fix rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytonyjan committed Dec 12, 2015
1 parent 46e3137 commit f5cd294
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ task compare: :compile do
table.each{|row| puts row.join(' | ')}
end

unless RUBY_PLATFORM == 'java'
if RUBY_PLATFORM == 'java'
task :compile do
puts 'Can not compile C extension, fallback to pure Ruby version.'
end
else
Rake::ExtensionTask.new 'jaro_winkler_ext' do |ext|
ext.lib_dir = 'lib/jaro_winkler'
ext.ext_dir = 'ext/jaro_winkler'
Expand Down

0 comments on commit f5cd294

Please sign in to comment.