Checking in changes prior to tagging of version 0.40_03. Changelog diff is:
[gitmo/Mouse.git] / Makefile.PL
index c86ec24..050fca7 100755 (executable)
@@ -22,7 +22,7 @@ test_requires 'Test::Exception' => 0.27;
 # test_requires 'Test::Output'    => 0.16; # too many dependencies!
 
 
-include 'Test::Exception'; # work around 0.27_0x (its use of diehook might be wrong)
+include_deps 'Test::Exception'; # work around 0.27_0x (its use of diehook might be wrong)
 
 recommends 'MRO::Compat' if $] < 5.010;
 
@@ -38,12 +38,16 @@ if($] < 5.008_001){
 }
 
 if(!defined $use_xs){
-    require ExtUtils::CBuilder;
-    $use_xs = ExtUtils::CBuilder->new(quiet => 1)->have_compiler();
+    $use_xs = eval {
+        require ExtUtils::CBuilder;
+        ExtUtils::CBuilder->new(quiet => 1)->have_compiler();
+    };
 }
 
 if($use_xs){
     require Module::Install::XSUtil;
+    Module::Install::XSUtil->VERSION(0.15); # for co-developpers
+
     use_ppport(3.19);
     cc_warnings();
     cc_src_paths('xs-src');
@@ -83,6 +87,6 @@ if (author_context()) {
     }
 }
 
-clean_files 'lib/Mouse/Tiny.pm';
+clean_files 'lib/Mouse/Tiny.pm $(O_FILES)';
 
 WriteAll check_nmake => 0;