diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-11-07 11:00:25 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-05-02 09:20:47 +0000 |
commit | ba6a36e653c40d10b9dc9d5b102c2a8b5885de90 () | |
tree | b6e8e2d0fe3e51578103f3b454211a081919e8ae /ext/digest | |
parent | 430789dec4df4c8294c135b6eff3cf2e6d78db76 (diff) |
[ruby/digest] Fix `--without-common-digest` option
In `digest_conf`, "no implicit conversion of false into String" TypeError is raised. https://.com/ruby/digest/commit/89e5e5fe3a
-rw-r--r-- | ext/digest/digest_conf.rb | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -2,14 +2,16 @@ def digest_conf(name) unless with_config("bundled-#{name}") - cc = with_config("common-digest") - if cc != false or /\b#{name}\b/ =~ cc - if File.exist?("#$srcdir/#{name}cc.h") and - have_header("CommonCrypto/CommonDigest.h") - $defs << "-D#{name.upcase}_USE_COMMONDIGEST" - $headers << "#{name}cc.h" - return :commondigest - end end end $objs << "#{name}.#{$OBJEXT}" |