From 488e2b0f5ae791ea17fd5b1880c4945a3306ca8e Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 1 Apr 2016 16:03:46 +0200 Subject: [PATCH] Add the C macro NDEBUG when configuring for release MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Andy Polyakov Reviewed-by: Emilia Käsper --- Configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Configure b/Configure index 1caba711ea..fdd88208b6 100755 --- a/Configure +++ b/Configure @@ -912,6 +912,8 @@ if ($target{build_scheme}->[0] eq "unified" && $classic) { my ($builder, $builder_platform, @builder_opts) = @{$target{build_scheme}}; +push @{$config{defines}}, "NDEBUG" if $config{build_type} eq "release"; + if ($target =~ /^mingw/ && `$target{cc} --target-help 2>&1` =~ m/-mno-cygwin/m) { $config{cflags} .= " -mno-cygwin"; -- 2.25.1