Files: 7e4f6e0afadfe4fcafb532df1846f9f05c340463 / ext / mri / 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