Skip to content

Commit

Permalink
Fix a warning under windows
Browse files Browse the repository at this point in the history
Fix Perl-Toolchain-Gang#361

PERL_SRC can be unset, make sure we are not using
undef in string concat.
  • Loading branch information
atoomic committed Aug 3, 2020
1 parent f37dd0d commit 39dfa51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ExtUtils/MM_Win32.pm
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ sub init_tools {
$self->{NOOP} ||= 'rem';
$self->{DEV_NULL} ||= '> NUL';

my $src = $self->{PERL_SRC} || '';

$self->{FIXIN} ||= $self->{PERL_CORE} ?
"\$(PERLRUN) -I$self->{PERL_SRC}\\cpan\\ExtUtils-PL2Bat\\lib $self->{PERL_SRC}\\win32\\bin\\pl2bat.pl" :
"\$(PERLRUN) -I$src\\cpan\\ExtUtils-PL2Bat\\lib $src\\win32\\bin\\pl2bat.pl" :
'pl2bat.bat';

$self->SUPER::init_tools;
Expand Down

0 comments on commit 39dfa51

Please sign in to comment.