Permalink
Browse files

Slightly more precise test to see if running swig can be skipped. Cha…

…nge from Jerry G Geiger.
  • Loading branch information...
1 parent 7bbe2cb commit 981c1bc1fa5dfd2f64226ee02a83f92b713041e3 R. Bernstein committed Aug 10, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 Build.PL
View
@@ -74,7 +74,8 @@ my $class = Module::Build->subclass( class => 'MyModuleBuild',
my $basename = basename($file, '.swg');
my $cfile = $basename."_wrap.c";
my $pmfile = File::Spec->catfile($lib,"$basename.pm");
- if($self->up_to_date($swigdeps->{$file}, $cfile)) {
+ if ($self->up_to_date($swigdeps->{$file}, $cfile) &&
+ $self->up_to_date($swigdeps->{$file}, $pmfile)) {
next if $self->up_to_date($file, $cfile) &&
$self->up_to_date($cfile, $pmfile);
}

0 comments on commit 981c1bc

Please sign in to comment.