Skip to content

Commit c7ca2f7

Browse files
authored
cross-compiling needs a real compiler check
the short cut introduced by the commit 5e55318 must depend on `$Config{'usecrosscompile'}`.
1 parent 8993fab commit c7ca2f7

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 1 if $ENV{PERL_CORE} && !$Config{'usecrosscompile'};
363363

364364
my $have_compiler = 0;
365365

0 commit comments

Comments
 (0)