diff --git a/t/lib/MakeMaker/Test/Utils.pm b/t/lib/MakeMaker/Test/Utils.pm index e86923139..4ebc8ceae 100644 --- a/t/lib/MakeMaker/Test/Utils.pm +++ b/t/lib/MakeMaker/Test/Utils.pm @@ -359,7 +359,7 @@ Returns true if there is a compiler available for XS builds. =cut sub have_compiler { - return 1 if $ENV{PERL_CORE}; + return $Config{'usecrosscompile'} ? 0 : 1 if $ENV{PERL_CORE}; my $have_compiler = 0;