Files: b4024d4b1505f3c87b4c0b1ed59b8850aeea719f / ext / extconf.rb
490 bytesRaw
1 | if RUBY_PLATFORM == "java" |
2 | # Don't do anything when run in JRuby; this allows gem installation to pass. |
3 | # We need to write a dummy Makefile so that RubyGems doesn't think compilation |
4 | # failed. |
5 | File.open('Makefile', 'w') do |f| |
6 | f.puts "all:" |
7 | f.puts "\t@true" |
8 | f.puts "install:" |
9 | f.puts "\t@true" |
10 | end |
11 | exit 0 |
12 | else |
13 | require "mkmf" |
14 | dir_config("bcrypt_ext") |
15 | # enable this when we're feeling nitpicky |
16 | # CONFIG['CC'] << " -Wall " |
17 | create_makefile("bcrypt_ext") |
18 | end |
Built with git-ssb-web