David Golden via RT wrote:
Show quoted text> <URL:
http://rt.cpan.org/Ticket/Display.html?id=46699 >
>
> On Sat, Jun 6, 2009 at 1:25 AM, Michael G Schwern via
> RT<bug-Test-NoXS@rt.cpan.org> wrote:
>> I have a request. MakeMaker needs to work under miniperl before any XS
>> code is built. To that end, I'd like way to turn off loading of *all*
>> XS code. "use Test::NoXS ':all'" would seem to make the most sense.
>
> I could do that, but don't you then need to bundle Test::NoXS into
> either core or EU::MM's inc?
No problem, this is what t/lib is for. This is just to simulate miniperl in
testing.
Show quoted text> Looking at the Test::NoXS source, you can probably just do this
> directly in a test somewhere before you require any EU::MM code:
>
> require DynaLoader;
> require XSLoader;
> # maybe no warnings 'redefine' ?
> *DynaLoader::bootstrap = sub { die };
> *XSLoader::load = sub { die };
I could, but then that would be MORE crazy code in MakeMaker to maintain. :)
--
'All anyone gets in a mirror is themselves,' she said. 'But what you
gets in a good gumbo is everything.'
-- "Witches Abroad" by Terry Prachett