forked from bcrypt-ruby/bcrypt-ruby
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Coda Hale <coda.hale@gmail.com>
- Loading branch information
1 parent
1354343
commit 8f7acf4
Showing
3 changed files
with
78 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
require "mkmf" | ||
dir_config("bcrypt_ext") | ||
# enable this when we're feeling nitpicky | ||
# CONFIG['CC'] << " -Wall " | ||
create_makefile("bcrypt_ext") | ||
if RUBY_PLATFORM == "java" | ||
# Don't do anything when run in JRuby; this allows gem installation to pass. | ||
# We need to write a dummy Makefile so that RubyGems doesn't think compilation | ||
# failed. | ||
File.open('Makefile', 'w') do |f| | ||
f.puts "all:" | ||
f.puts "\t@true" | ||
f.puts "install:" | ||
f.puts "\t@true" | ||
end | ||
exit 0 | ||
else | ||
require "mkmf" | ||
dir_config("bcrypt_ext") | ||
# enable this when we're feeling nitpicky | ||
# CONFIG['CC'] << " -Wall " | ||
create_makefile("bcrypt_ext") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters