Skip to content

Commit 5d87198

Browse files
committed
fix have_compiler when cross-compiling
the short cut introduced by the commit 5e55318 must depend on `$Config{'usecrosscompile'}`.
1 parent 8993fab commit 5d87198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/lib/MakeMaker/Test/Utils.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ Returns true if there is a compiler available for XS builds.
359359
=cut
360360

361361
sub have_compiler {
362-
return 1 if $ENV{PERL_CORE};
362+
return $Config{'usecrosscompile'} ? 0 : 1 if $ENV{PERL_CORE};
363363

364364
my $have_compiler = 0;
365365

0 commit comments

Comments
 (0)