mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Require C99 (and thus MSCV 2013 upwards).
In 86d78ef50e
I enabled configure to check for C99 support, with the
goal of checking which platforms support C99. While there are a few
machines without C99 support among our buildfarm animals,
de-supporting them for v12 was deemed acceptable.
While not tested in aforementioned commit, the biggest increase in
minimum compiler version comes from MSVC, which gained C99 support
fairly late. The subset in MSVC 2013 is sufficient for our needs, at
this point. While that is a significant increase in minimum version,
the existing windows binaries are already built with a new enough
version.
Make configure error out if C99 support could not be detected. For
MSVC builds, increase the minimum version to 2013.
The increase to MSVC 2013 allows us to get rid of VCBuildProject.pm,
as that was only required for MSVC 2005/2008.
Author: Andres Freund
Discussion: https://postgr.es/m/97d4b165-192d-3605-749c-f614a0c4e783@2ndquadrant.com
This commit is contained in:
@ -13,7 +13,6 @@ use warnings;
|
||||
use Exporter;
|
||||
use Project;
|
||||
use Solution;
|
||||
use VCBuildProject;
|
||||
use MSBuildProject;
|
||||
|
||||
our (@ISA, @EXPORT);
|
||||
@ -31,23 +30,7 @@ sub CreateSolution
|
||||
$visualStudioVersion = DetermineVisualStudioVersion();
|
||||
}
|
||||
|
||||
if ($visualStudioVersion eq '8.00')
|
||||
{
|
||||
return new VS2005Solution(@_);
|
||||
}
|
||||
elsif ($visualStudioVersion eq '9.00')
|
||||
{
|
||||
return new VS2008Solution(@_);
|
||||
}
|
||||
elsif ($visualStudioVersion eq '10.00')
|
||||
{
|
||||
return new VS2010Solution(@_);
|
||||
}
|
||||
elsif ($visualStudioVersion eq '11.00')
|
||||
{
|
||||
return new VS2012Solution(@_);
|
||||
}
|
||||
elsif ($visualStudioVersion eq '12.00')
|
||||
if ($visualStudioVersion eq '12.00')
|
||||
{
|
||||
return new VS2013Solution(@_);
|
||||
}
|
||||
@ -78,23 +61,7 @@ sub CreateProject
|
||||
$visualStudioVersion = DetermineVisualStudioVersion();
|
||||
}
|
||||
|
||||
if ($visualStudioVersion eq '8.00')
|
||||
{
|
||||
return new VC2005Project(@_);
|
||||
}
|
||||
elsif ($visualStudioVersion eq '9.00')
|
||||
{
|
||||
return new VC2008Project(@_);
|
||||
}
|
||||
elsif ($visualStudioVersion eq '10.00')
|
||||
{
|
||||
return new VC2010Project(@_);
|
||||
}
|
||||
elsif ($visualStudioVersion eq '11.00')
|
||||
{
|
||||
return new VC2012Project(@_);
|
||||
}
|
||||
elsif ($visualStudioVersion eq '12.00')
|
||||
if ($visualStudioVersion eq '12.00')
|
||||
{
|
||||
return new VC2013Project(@_);
|
||||
}
|
||||
|
Reference in New Issue
Block a user