Set minimum required compilers to GCC 4.6 or Visual Studio 2013 to support more C++11 features. Use VS 2013 and VS 2017 in AppVeyor.
This commit is contained in:
parent
e2002db78d
commit
a5162e26e8
24
appveyor.yml
24
appveyor.yml
|
@ -4,36 +4,36 @@ clone_depth: 10
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- VisualStudioVersion: 10.0
|
- VisualStudioVersion: 12.0
|
||||||
platform: "Win32"
|
platform: "Win32"
|
||||||
configuration: "Debug"
|
configuration: "Debug"
|
||||||
vcvarsall_platform: "x86"
|
vcvarsall_platform: "x86"
|
||||||
PlatformToolset: "v100"
|
PlatformToolset: "v120"
|
||||||
- VisualStudioVersion: 10.0
|
- VisualStudioVersion: 12.0
|
||||||
platform: "Win32"
|
platform: "Win32"
|
||||||
configuration: "Release"
|
configuration: "Release"
|
||||||
vcvarsall_platform: "x86"
|
vcvarsall_platform: "x86"
|
||||||
PlatformToolset: "v100"
|
PlatformToolset: "v120"
|
||||||
- VisualStudioVersion: 10.0
|
- VisualStudioVersion: 12.0
|
||||||
platform: "x64"
|
platform: "x64"
|
||||||
configuration: "Debug"
|
configuration: "Debug"
|
||||||
vcvarsall_platform: "x64"
|
vcvarsall_platform: "x64"
|
||||||
PlatformToolset: "v100"
|
PlatformToolset: "v120"
|
||||||
- VisualStudioVersion: 10.0
|
- VisualStudioVersion: 12.0
|
||||||
platform: "x64"
|
platform: "x64"
|
||||||
configuration: "Release"
|
configuration: "Release"
|
||||||
vcvarsall_platform: "x64"
|
vcvarsall_platform: "x64"
|
||||||
PlatformToolset: "v100"
|
PlatformToolset: "v120"
|
||||||
- VisualStudioVersion: 14.0
|
- VisualStudioVersion: 15.0
|
||||||
platform: "Win32"
|
platform: "Win32"
|
||||||
configuration: "Debug"
|
configuration: "Debug"
|
||||||
vcvarsall_platform: "x86"
|
vcvarsall_platform: "x86"
|
||||||
PlatformToolset: "v140"
|
PlatformToolset: "v141"
|
||||||
- VisualStudioVersion: 14.0
|
- VisualStudioVersion: 15.0
|
||||||
platform: "x64"
|
platform: "x64"
|
||||||
configuration: "Debug"
|
configuration: "Debug"
|
||||||
vcvarsall_platform: "x64"
|
vcvarsall_platform: "x64"
|
||||||
PlatformToolset: "v140"
|
PlatformToolset: "v141"
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- ECHO Building %configuration% %platform% with MSVC %VisualStudioVersion% using %PlatformToolset% PlatformToolset
|
- ECHO Building %configuration% %platform% with MSVC %VisualStudioVersion% using %PlatformToolset% PlatformToolset
|
||||||
|
|
10
cli/main.cpp
10
cli/main.cpp
|
@ -150,14 +150,14 @@ int main(int argc, char* argv[])
|
||||||
// Warn about deprecated compilers
|
// Warn about deprecated compilers
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
# if ( __clang_major__ < 2 || ( __clang_major__ == 2 && __clang_minor__ < 9))
|
# if ( __clang_major__ < 2 || ( __clang_major__ == 2 && __clang_minor__ < 9))
|
||||||
# warning "Using Clang 2.8 or earlier. Support for this version will be removed soon."
|
# warning "Using Clang 2.8 or earlier. Support for this version has been removed."
|
||||||
# endif
|
# endif
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
# if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))
|
# if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6))
|
||||||
# warning "Using GCC 4.3 or earlier. Support for this version will be removed soon."
|
# warning "Using GCC 4.5 or earlier. Support for this version has been removed."
|
||||||
# endif
|
# endif
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
# if (_MSC_VER < 1600)
|
# if (_MSC_VER < 1800)
|
||||||
# pragma message("WARNING: Using Visual Studio 2008 or earlier. Support for this version will be removed soon.")
|
# pragma message("WARNING: Using Visual Studio 2012 or earlier. Support for this version has been removed.")
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue