This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Note the open RT ticket.
[perl5.git] / cpan / Digest-SHA / hints / hpux.pl
1 # With +O2 this HP-UX cc compiler creates code which coredumps (Bus error)
2 # when running t/woodbury.t, but dropping to +O1 seems to dodge that.
3 #
4 # This might turn out to be temporary, see:
5 # https://rt.cpan.org/Ticket/Display.html?id=96498
6 if ($Config{cc} eq 'cc' &&
7     $Config{archname} eq 'PA-RISC2.0' &&
8     $Config{ccversion} =~ /^B\.11\.11\./) {
9   if (defined $self->{OPTIMIZE}) {
10     $self->{OPTIMIZE} =~ s/\+O[2-9]/+O1/;
11     $self->{OPTIMIZE} =~ s/ \+Onolimit//;
12   } else {
13     $self->{OPTIMIZE} = '+O1';
14   }
15 }