Skip to content

Commit

Permalink
also check for SILENT_NO_TAINT_SUPPORT
Browse files Browse the repository at this point in the history
and don't verify in that case.
  • Loading branch information
renormalist committed Sep 16, 2021
1 parent db11f38 commit d46e57a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/Benchmark/Perl/Formance.pm
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,12 @@ sub _get_perl_config_notaintsupport {

my $config_args = $Config{config_args};
my $notaintsupport = 0; # standard
if ($config_args =~ /-DNO_TAINT_SUPPORT\b/ and not _taint_available()) {
$notaintsupport = 1;
if ($config_args =~ /(SILENT_)?NO_TAINT_SUPPORT\b/) {
if ($config_args =~ /SILENT_NO_TAINT_SUPPORT\b/) {
$notaintsupport = 1; # no further check possible
} else {
$notaintsupport = 1 if not _taint_available();
}
}
return $notaintsupport;
}
Expand Down

0 comments on commit d46e57a

Please sign in to comment.