File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1072,11 +1072,14 @@ sub Build {
1072
1072
};
1073
1073
$copyexe -> ($PERL_APE , $APPPATH );
1074
1074
my $srcdbg = " $PERL_APE .dbg" ;
1075
- if (! -f $srcdbg ) {
1075
+ for (1..2) {
1076
+ if (-f $srcdbg ) {
1077
+ $copyexe -> ($srcdbg , " $APPPATH .dbg" );
1078
+ last ;
1079
+ }
1076
1080
$srcdbg = $PERL_APE ;
1077
1081
$srcdbg =~ s / com$/ elf/ ;
1078
1082
}
1079
- $copyexe -> ($srcdbg , " $APPPATH .dbg" );
1080
1083
if ((! exists $UserProjectConfig -> {nobuild_perl_bin }) || scalar (keys %{$itemconfig -> {zip_extra_files }})) {
1081
1084
print " cd $ZIP_ROOT \n " ;
1082
1085
chdir ($ZIP_ROOT ) or die " failed to enter ziproot" ;
@@ -1188,6 +1191,7 @@ sub Build {
1188
1191
1189
1192
foreach my $file (' perl.com' , ' perl.com.dbg' ) {
1190
1193
my $srcpath = " $TEMPDIR /$file " ;
1194
+ -e $srcpath or next ;
1191
1195
my $destpath = " $OUTPUTDIR /$file " ;
1192
1196
print " mv $srcpath $destpath \n " ;
1193
1197
move($srcpath , $destpath ) or die " move failed: $! " ;
@@ -1201,6 +1205,7 @@ sub Build {
1201
1205
my $destfile = $itemconfig -> {dest };
1202
1206
$destfile .= ' .dbg' if ($srcfile =~ / dbg$ / );
1203
1207
my @args = (" $UserProjectConfig ->{apperl_output}/$CurAPPerlName /$srcfile " , $destfile );
1208
+ -e $args [0] or next ;
1204
1209
print ' cp ' .join (' ' , @args )." \n " ;
1205
1210
cp(@args ) or die " copy failed: $! " ;
1206
1211
}
You can’t perform that action at this time.
0 commit comments