diff options
author | alex <alex@alemate.ru> | 2010-08-25 13:38:28 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2010-08-25 14:23:11 +0100 |
commit | b982c5de5a0d9f6f77b3776ebcade4b34d29cfc2 (patch) | |
tree | a82f69ba391c046a7505d1e5b9d2b78b67138a9b /configpm | |
parent | 94ca877552a4c313bb412c469660433935f8dc00 (diff) | |
download | perl-b982c5de5a0d9f6f77b3776ebcade4b34d29cfc2.tar.gz |
Config.pm: report perl path in version conflict.
When Config.pm dies with a perl/library version mismatch error, include
the path of the perl executable in the error message.
This helps avoid confusion during perl build when a cc wrapper written in
perl is used (such as colorgcc)
Diffstat (limited to 'configpm')
-rwxr-xr-x | configpm | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -215,11 +215,11 @@ sub import { return; } -die "Perl lib version (%s) doesn't match executable version ($])" +die "Perl lib version (%s) doesn't match executable '$0' version ($])" unless $^V; $^V eq %s - or die "Perl lib version (%s) doesn't match executable version (" . + or die "Perl lib version (%s) doesn't match executable '$0' version (" . sprintf("v%%vd",$^V) . ")"; ENDOFBEG |