Skip to content

Commit

Permalink
Read BUILD_REQUIRES and TEST_REQUIRES from Makefile.PL (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk committed Mar 17, 2021
1 parent 48a5bdd commit aa5d1a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Intrusive.pm
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ sub _find_modules {
my $WriteMakefile = sub {
my %args = @_;
$self->requires( $args{PREREQ_PM} || {} );
my %br = %{ $args{TEST_REQUIRES} || {} };
%br = (%br, %{ $args{BUILD_REQUIRES} }) if $args{BUILD_REQUIRES};
$self->build_requires( \%br );
1;
};
local *main::WriteMakefile;
Expand Down

0 comments on commit aa5d1a0

Please sign in to comment.