Disable XS code on perls with ${^GLOBAL_PHASE}
[p5sagit/Devel-GlobalDestruction.git] / Makefile.PL
index 84887e1..7ab9cef 100644 (file)
@@ -6,15 +6,16 @@ require 5.006000;
 use ExtUtils::MakeMaker;
 
 WriteMakefile(
-       NAME             => 'Devel::GlobalDestruction',
-       VERSION_FROM     => 'lib/Devel/GlobalDestruction.pm',
-       INSTALLDIRS      => 'site',
-       SIGN             => 1,
-       PL_FILES         => { },
+    NAME             => 'Devel::GlobalDestruction',
+    VERSION_FROM     => 'lib/Devel/GlobalDestruction.pm',
+    INSTALLDIRS      => 'site',
+    SIGN             => 1,
+    PL_FILES         => { },
     MIN_PERL_VERSION => '5.006000',
-       PREREQ_PM        => {
-               'Sub::Exporter' => 0,
-               'Scope::Guard'  => 0,
-       },
+    PREREQ_PM        => {
+        'Sub::Exporter' => 0,
+        'Scope::Guard'  => 0,
+    },
+    ($] >= 5.013007 ? (XS => {}, C => []) : ()),
 );