1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +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.

Backpatch to 9.5
This commit is contained in:
Andrew Dunstan
2016-04-29 07:59:47 -04:00
parent 59455018a8
commit 0fb54de9aa
9 changed files with 165 additions and 34 deletions

View File

@ -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.";
@ -112,11 +120,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)
{