Skip to content

Commit 48a452f

Browse files
committed
Windows: specify full path to pl2bat if possible
Otherwise fall back to the existing behaviour and let the system find it on the path.
1 parent 5b79f2e commit 48a452f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ExtUtils/MM_Win32.pm

+2
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ sub init_tools {
144144

145145
$self->{FIXIN} ||= $self->{PERL_CORE} ?
146146
"\$(PERLRUN) -I$self->{PERL_SRC}\\cpan\\ExtUtils-PL2Bat\\lib $self->{PERL_SRC}\\win32\\bin\\pl2bat.pl" :
147+
-e "$Config{installscript}\\pl2bat.bat" ?
148+
qq{"$Config{installscript}\\pl2bat.bat"} :
147149
'pl2bat.bat';
148150

149151
$self->SUPER::init_tools;

0 commit comments

Comments
 (0)