Commit 5ab3e743 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Detect MSYS and use Unix like build if detected.

parent 1c5dc844
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -918,7 +918,7 @@ foreach (sort (keys %disabled))

my $IsMK1MF=scalar grep /^$target$/,@MK1MF_Builds;

$IsMK1MF=1 if ($target eq "mingw" && $^O ne "cygwin");
$IsMK1MF=1 if ($target eq "mingw" && $^O ne "cygwin" && !is_msys());

$exe_ext=".exe" if ($target eq "Cygwin" || $target eq "DJGPP" || $target eq "mingw");
$exe_ext=".pm"  if ($target =~ /vos/);
@@ -1806,3 +1806,11 @@ sub test_sanity
	print STDERR "No sanity errors detected!\n" if $errorcnt == 0;
	return $errorcnt;
	}

# Attempt to detect MSYS environment

sub is_msys
	{
	return 1 if (exists $ENV{"TERM"} && $ENV{"TERM"} eq "msys");
	return 0;
	}