ruby-changes:66012
From: Nobuyoshi <ko1@a...>
Date: Wed, 28 Apr 2021 18:49:20 +0900 (JST)
Subject: [ruby-changes:66012] 795fb51f80 (master): NDEBUG is ignored since Ruby 3.0
https://git.ruby-lang.org/ruby.git/commit/?id=795fb51f80 From 795fb51f80e0cda19d39480bdaa26ecdab3557a9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 28 Apr 2021 18:40:45 +0900 Subject: NDEBUG is ignored since Ruby 3.0 --- ext/digest/rmd160/extconf.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/digest/rmd160/extconf.rb b/ext/digest/rmd160/extconf.rb index ffa70ee..a923dcf 100644 --- a/ext/digest/rmd160/extconf.rb +++ b/ext/digest/rmd160/extconf.rb @@ -6,7 +6,10 @@ https://github.com/ruby/ruby/blob/trunk/ext/digest/rmd160/extconf.rb#L6 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}" ] -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/