Permalink
Browse files

Devel::CheckLib: remove generated .dSYM directories on OS X

  • Loading branch information...
1 parent 2e72054 commit b0b8b355120c0b3f6c023fd136ab9f8676fe09eb @tonycoz committed Oct 15, 2012
@@ -14,6 +14,7 @@ use Text::ParseWords 'quotewords';
use File::Spec;
use File::Temp;
+use File::Path qw(rmtree);
require Exporter;
@ISA = qw(Exporter);
@@ -384,6 +385,11 @@ sub _cleanup_exe {
unlink $ilkfile if -f $ilkfile;
unlink $pdbfile if -f $pdbfile;
}
+ # created by clang on darwin
+ my $dsym_dir = $exefile;
+ $dsym_dir =~ s/\Q$Config{_exe}\E$/.dSYM/;
+ rmtree $dsym_dir if -d $dsym_dir;
+
return
}
@@ -14,6 +14,7 @@ use Text::ParseWords 'quotewords';
use File::Spec;
use File::Temp;
+use File::Path qw(rmtree);
require Exporter;
@ISA = qw(Exporter);
@@ -384,6 +385,11 @@ sub _cleanup_exe {
unlink $ilkfile if -f $ilkfile;
unlink $pdbfile if -f $pdbfile;
}
+ # created by clang on darwin
+ my $dsym_dir = $exefile;
+ $dsym_dir =~ s/\Q$Config{_exe}\E$/.dSYM/;
+ rmtree $dsym_dir if -d $dsym_dir;
+
return
}
@@ -14,6 +14,7 @@ use Text::ParseWords 'quotewords';
use File::Spec;
use File::Temp;
+use File::Path qw(rmtree);
require Exporter;
@ISA = qw(Exporter);
@@ -384,6 +385,11 @@ sub _cleanup_exe {
unlink $ilkfile if -f $ilkfile;
unlink $pdbfile if -f $pdbfile;
}
+ # created by clang on darwin
+ my $dsym_dir = $exefile;
+ $dsym_dir =~ s/\Q$Config{_exe}\E$/.dSYM/;
+ rmtree $dsym_dir if -d $dsym_dir;
+
return
}
@@ -14,6 +14,7 @@ use Text::ParseWords 'quotewords';
use File::Spec;
use File::Temp;
+use File::Path qw(rmtree);
require Exporter;
@ISA = qw(Exporter);
@@ -384,6 +385,11 @@ sub _cleanup_exe {
unlink $ilkfile if -f $ilkfile;
unlink $pdbfile if -f $pdbfile;
}
+ # created by clang on darwin
+ my $dsym_dir = $exefile;
+ $dsym_dir =~ s/\Q$Config{_exe}\E$/.dSYM/;
+ rmtree $dsym_dir if -d $dsym_dir;
+
return
}
View
@@ -14,6 +14,7 @@ use Text::ParseWords 'quotewords';
use File::Spec;
use File::Temp;
+use File::Path qw(rmtree);
require Exporter;
@ISA = qw(Exporter);
@@ -384,6 +385,11 @@ sub _cleanup_exe {
unlink $ilkfile if -f $ilkfile;
unlink $pdbfile if -f $pdbfile;
}
+ # created by clang on darwin
+ my $dsym_dir = $exefile;
+ $dsym_dir =~ s/\Q$Config{_exe}\E$/.dSYM/;
+ rmtree $dsym_dir if -d $dsym_dir;
+
return
}
@@ -14,6 +14,7 @@ use Text::ParseWords 'quotewords';
use File::Spec;
use File::Temp;
+use File::Path qw(rmtree);
require Exporter;
@ISA = qw(Exporter);
@@ -384,6 +385,11 @@ sub _cleanup_exe {
unlink $ilkfile if -f $ilkfile;
unlink $pdbfile if -f $pdbfile;
}
+ # created by clang on darwin
+ my $dsym_dir = $exefile;
+ $dsym_dir =~ s/\Q$Config{_exe}\E$/.dSYM/;
+ rmtree $dsym_dir if -d $dsym_dir;
+
return
}
@@ -14,6 +14,7 @@ use Text::ParseWords 'quotewords';
use File::Spec;
use File::Temp;
+use File::Path qw(rmtree);
require Exporter;
@ISA = qw(Exporter);
@@ -384,6 +385,11 @@ sub _cleanup_exe {
unlink $ilkfile if -f $ilkfile;
unlink $pdbfile if -f $pdbfile;
}
+ # created by clang on darwin
+ my $dsym_dir = $exefile;
+ $dsym_dir =~ s/\Q$Config{_exe}\E$/.dSYM/;
+ rmtree $dsym_dir if -d $dsym_dir;
+
return
}
View
@@ -14,6 +14,7 @@ use Text::ParseWords 'quotewords';
use File::Spec;
use File::Temp;
+use File::Path qw(rmtree);
require Exporter;
@ISA = qw(Exporter);
@@ -384,6 +385,11 @@ sub _cleanup_exe {
unlink $ilkfile if -f $ilkfile;
unlink $pdbfile if -f $pdbfile;
}
+ # created by clang on darwin
+ my $dsym_dir = $exefile;
+ $dsym_dir =~ s/\Q$Config{_exe}\E$/.dSYM/;
+ rmtree $dsym_dir if -d $dsym_dir;
+
return
}

0 comments on commit b0b8b35

Please sign in to comment.