Permalink
Browse files

Bootstrap after global options have ben set.

  • Loading branch information...
pjcj committed Apr 12, 2010
1 parent e26e5ab commit 921e859fd8682823049e050032bfdededcfcb3e5
Showing with 3 additions and 2 deletions.
  1. +1 −0 Cover.xs
  2. +2 −2 lib/Devel/Cover.pm
View
@@ -1064,6 +1064,7 @@ static void initialise(pTHX)
MY_CXT.tid = tid++;
MY_CXT.replace_ops = SvTRUE(get_sv("Devel::Cover::Replace_ops", FALSE));
+ NDEB(D(L, "running with Replace_ops as %d\n", MY_CXT.replace_ops));
}
}
View
@@ -255,8 +255,6 @@ $Replace_ops = 1;
sub import
{
return if $Initialised;
- bootstrap Devel::Cover $VERSION;
-
my $class = shift;
@@ -289,6 +287,8 @@ sub import
warn __PACKAGE__ . ": Unknown option $_ ignored\n";
}
+ bootstrap Devel::Cover $VERSION;
+
if (defined $Dir)
{
# Die tainting.

0 comments on commit 921e859

Please sign in to comment.