diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-04-28 18:40:45 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-04-28 18:48:08 +0900 |
commit | 795fb51f80e0cda19d39480bdaa26ecdab3557a9 (patch) | |
tree | e98a5d86b69c86b0b1cfb44c82a4d692642ff777 /ext | |
parent | f985dafee7548faad2b35efeda5e844a8e13d336 (diff) | |
download | ruby-795fb51f80e0cda19d39480bdaa26ecdab3557a9.tar.gz |
NDEBUG is ignored since Ruby 3.0
Diffstat (limited to 'ext')
-rw-r--r-- | ext/digest/rmd160/extconf.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/digest/rmd160/extconf.rb b/ext/digest/rmd160/extconf.rb index ffa70ee803..a923dcf9be 100644 --- a/ext/digest/rmd160/extconf.rb +++ b/ext/digest/rmd160/extconf.rb @@ -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}" ] |