Add the C macro NDEBUG when configuring for release
Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Emilia Käsper <emilia@openssl.org>
This commit is contained in:
parent
368058d0a7
commit
488e2b0f5a
1 changed files with 2 additions and 0 deletions
|
@ -912,6 +912,8 @@ if ($target{build_scheme}->[0] eq "unified" && $classic) {
|
||||||
my ($builder, $builder_platform, @builder_opts) =
|
my ($builder, $builder_platform, @builder_opts) =
|
||||||
@{$target{build_scheme}};
|
@{$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)
|
if ($target =~ /^mingw/ && `$target{cc} --target-help 2>&1` =~ m/-mno-cygwin/m)
|
||||||
{
|
{
|
||||||
$config{cflags} .= " -mno-cygwin";
|
$config{cflags} .= " -mno-cygwin";
|
||||||
|
|
Loading…
Reference in a new issue