Skip to content

Commit

Permalink
there has been gem for java platform since 1.4.0 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytonyjan committed Dec 13, 2015
1 parent de15eba commit 093bd09
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions ext/jaro_winkler/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
unless RUBY_PLATFORM == 'java'
require 'mkmf'
$CFLAGS << ' -std=c99 '
create_makefile('jaro_winkler/jaro_winkler_ext')
else
dummy_makefile = open('Makefile', 'wb')
dummy_makefile.puts '.PHONY: install'
dummy_makefile.puts 'install:'
dummy_makefile.puts "\t" + '@echo "C extension is not installed, fall back to pure Ruby version instead."'
dummy_makefile.close
end
require 'mkmf'
$CFLAGS << ' -std=c99 '
create_makefile('jaro_winkler/jaro_winkler_ext')

0 comments on commit 093bd09

Please sign in to comment.