Skip to content

Commit

Permalink
Include proper files for Inline::CPP dists
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Dec 11, 2014
1 parent 9f96b5a commit a333152
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions lib/Inline/Module.pm
Expand Up @@ -155,14 +155,23 @@ sub default_args {

sub included_modules {
my ($self) = @_;

return (
my $ilsm = $self->{ilsm};
my @include = (
'Inline',
'Inline::denter',
@{$self->{ilsm}},
'Inline::C::Parser::RegExp',
'Inline::Module',
@$ilsm,
);
if (grep /:C$/, @$ilsm) {
push @include,
'Inline::C::Parser::RegExp';
}
if (grep /:CPP$/, @$ilsm) {
push @include,
'Inline::CPP::Parser::RecDescent',
'Parse::RecDescent';
}
return @include;
}

#------------------------------------------------------------------------------
Expand Down

0 comments on commit a333152

Please sign in to comment.