remove *.pdb files on windows upon $(MAKE) clean (fixes
authorGurusamy Sarathy <gsar@cpan.org>
Mon, 9 Jul 2001 03:42:20 +0000 (03:42 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Mon, 9 Jul 2001 03:42:20 +0000 (03:42 +0000)
failure of ExtUtils.t#27 when built in debug mode)

p4raw-id: //depot/perl@11228

lib/ExtUtils/MM_Win32.pm

index be00a6b..b7a8f81 100644 (file)
@@ -535,16 +535,15 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)\.exists
 
 sub clean
 {
- my ($self) = @_;
- my $s = &ExtUtils::MM_Unix::clean;
- if ($GCC) {
-       $s .= <<'END';
   my ($self) = @_;
   my $s = &ExtUtils::MM_Unix::clean;
+    my $clean = $GCC ? 'dll.base dll.exp' : '*.pdb';
+    $s .= <<END;
 clean ::
-       -$(RM_F) dll.base dll.exp
+       -\$(RM_F) $clean
 
 END
- }
- return $s;
+    return $s;
 }