We only need local $? if we inline calls to DEMOLISH
[gitmo/Moose.git] / Makefile.PL
1 use strict;
2 use warnings;
3
4 BEGIN {
5     eval { require ExtUtils::MakeMaker::Dist::Zilla::Develop };
6     if ($@) {
7         warn
8             "You need to install ExtUtils::MakeMaker::Dist::Zilla::Develop to run this Makefile.PL\n";
9         exit 1;
10     }
11
12     eval { require Test::Inline };
13     if ($@) {
14         warn "You need to install Test::Inline to run this Makefile.PL\n";
15         exit 1;
16     }
17
18     ExtUtils::MakeMaker::Dist::Zilla::Develop->import();
19 }
20
21 use lib 'inc';
22
23 use MMHelper;
24 use MyInline;
25
26 system( $^X, 'author/extract-inline-tests', '--quiet' );
27
28 eval MMHelper::my_package_subs();
29
30 WriteMakefile(
31     NAME => 'Moose',
32     test => { TESTS => 't/*.t t/*/*.t' },
33     CCFLAGS => MMHelper::ccflags_static('dev'),
34     MMHelper::mm_args(),
35 );