mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Support building with Visual Studio 2015
Adjust the way we detect the locale. As a result the minumum Windows version supported by VS2015 and later is Windows Vista. Add some tweaks to remove new compiler warnings. Remove documentation references to the now obsolete msysGit. Michael Paquier, somewhat edited by me, reviewed by Christian Ullrich. Rather belated backpatch to 9.4 and 9.3
This commit is contained in:
@ -49,6 +49,10 @@ sub CreateSolution
|
||||
{
|
||||
return new VS2013Solution(@_);
|
||||
}
|
||||
elsif ($visualStudioVersion eq '14.00')
|
||||
{
|
||||
return new VS2015Solution(@_);
|
||||
}
|
||||
else
|
||||
{
|
||||
croak "The requested Visual Studio version is not supported.";
|
||||
@ -84,6 +88,10 @@ sub CreateProject
|
||||
{
|
||||
return new VC2013Project(@_);
|
||||
}
|
||||
elsif ($visualStudioVersion eq '14.00')
|
||||
{
|
||||
return new VC2015Project(@_);
|
||||
}
|
||||
else
|
||||
{
|
||||
croak "The requested Visual Studio version is not supported.";
|
||||
@ -123,11 +131,11 @@ sub DetermineVisualStudioVersion
|
||||
sub _GetVisualStudioVersion
|
||||
{
|
||||
my ($major, $minor) = @_;
|
||||
if ($major > 12)
|
||||
if ($major > 14)
|
||||
{
|
||||
carp
|
||||
"The determined version of Visual Studio is newer than the latest supported version. Returning the latest supported version instead.";
|
||||
return '12.00';
|
||||
return '14.00';
|
||||
}
|
||||
elsif ($major < 6)
|
||||
{
|
||||
|
Reference in New Issue
Block a user