X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDevel%2FGlobalDestruction.pm;h=36a1feb73bb33f4bd076cbe9ea68523b77bb877f;hb=b1bee216b13ba067c620587ce49899927e103970;hp=c1c9b5e172c26bbed02f1ceb4b36da12d2bc5928;hpb=6f93d768566ef08e28e5b1b732a63c0e04dfbf68;p=p5sagit%2FDevel-GlobalDestruction.git diff --git a/lib/Devel/GlobalDestruction.pm b/lib/Devel/GlobalDestruction.pm index c1c9b5e..36a1feb 100644 --- a/lib/Devel/GlobalDestruction.pm +++ b/lib/Devel/GlobalDestruction.pm @@ -19,8 +19,8 @@ if (defined ${^GLOBAL_PHASE}) { # try to load the xs version if it was compiled # elsif (eval { - require XSLoader; - XSLoader::load(__PACKAGE__, $VERSION); + require Devel::GlobalDestruction::XS; + *in_global_destruction = \&Devel::GlobalDestruction::XS::in_global_destruction; 1; }) { # the eval already installed everything, nothing to do