This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix Time::HiRes compile probe on VMS
authorCraig A. Berry <craigberry@mac.com>
Thu, 24 Dec 2020 14:48:47 +0000 (08:48 -0600)
committerCraig A. Berry <craigberry@mac.com>
Thu, 24 Dec 2020 18:01:59 +0000 (12:01 -0600)
commit9eebd4ca7bb8610f51a27d96c12e9b1676958d55
tree0da70498a3e7b14850296d82524a4302d88f9a39
parent387608880ebf5408efb63a7fbd36309dd17758d8
Fix Time::HiRes compile probe on VMS

The probe was checking the severity bits of the compiler exit
status and requiring the value to be 1, which is what they are
for SS$_NORMAL. But actually any true (odd) value is considered
successful. So, for example, if the compile succeeds but emits
"informational messages" that do not rise to the level of warnings
or errors, the severity bits have a value of 3, not 1. The probe
should not fail (and end up halting the build) in this case, so
allow any successful value.
Porting/Maintainers.pl
dist/Time-HiRes/Makefile.PL
t/porting/customized.dat