mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-22 16:33:49 +01:00
perl: PERL_ONLY=1 disables XS
This commit is contained in:
parent
63f6c86b46
commit
49379140c7
@ -24,7 +24,7 @@ sub false () {
|
|||||||
|
|
||||||
if ( !__PACKAGE__->can('pack') ) { # this idea comes from Text::Xslate
|
if ( !__PACKAGE__->can('pack') ) { # this idea comes from Text::Xslate
|
||||||
my $backend = $ENV{ PERL_DATA_MESSAGEPACK } || '';
|
my $backend = $ENV{ PERL_DATA_MESSAGEPACK } || '';
|
||||||
if ( $backend !~ /\b pp \b/xms ) {
|
if ( $backend !~ /\b pp \b/xms or $ENV{PERL_ONLY} ) {
|
||||||
eval {
|
eval {
|
||||||
require XSLoader;
|
require XSLoader;
|
||||||
XSLoader::load(__PACKAGE__, $VERSION);
|
XSLoader::load(__PACKAGE__, $VERSION);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user