NDEBUG is ignored since Ruby 3.0

This commit is contained in:
Nobuyoshi Nakada 2021-04-28 18:40:45 +09:00
parent f985dafee7
commit 795fb51f80
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -6,7 +6,10 @@
require "mkmf"
require File.expand_path("../../digest_conf", __FILE__)
$defs << "-DNDEBUG" << "-DHAVE_CONFIG_H"
if try_static_assert("RUBY_API_VERSION_MAJOR < 3", "ruby/version.h")
$defs << "-DNDEBUG"
end
$defs << "-DHAVE_CONFIG_H"
$objs = [ "rmd160init.#{$OBJEXT}" ]