Bump the minimum compiler version to C++17.

This commit is contained in:
Sadie Powell 2020-05-11 13:04:51 +01:00
parent ea5bf13313
commit 30e7e13298
5 changed files with 6 additions and 1712 deletions

View File

@ -6,13 +6,13 @@ InspIRCd is a modular C++ Internet Relay Chat (IRC) server for UNIX-like and Win
InspIRCd is supported on the following platforms:
- Most recent BSD variants using the Clang 3.8+ or GCC 5+ compilers and the GNU toolchains (Make, etc).
- Most recent BSD variants using the Clang 5+ or GCC 7+ compilers and the GNU toolchains (Make, etc).
- Most recent Linux distributions using the Clang 3.8+ or GCC 5+ compilers and the GNU toolchain.
- Most recent Linux distributions using the Clang 5+ or GCC 7+ compilers and the GNU toolchain.
- The most recent three major releases of macOS using the AppleClang 7.0.2+, Clang 3.8+, or GCC 5+ (*not* LLVM-GCC) compilers and the GNU toolchain.
- The most recent three major releases of macOS using the AppleClang 10, Clang 5+, or GCC 7+ (*not* LLVM-GCC) compilers and the GNU toolchain.
- Windows 7 or newer using the MSVC 14+ (Visual Studio 2015) compiler and CMake 2.8+.
- Windows 7 or newer using the MSVC 19.15+ (Visual Studio 15.8 2017) compiler and CMake 2.8+.
Alternate platforms and toolchains may also work but are not officially supported by the InspIRCd team. Generally speaking if you are using a reasonably modern UNIX-like system you should be able to build InspIRCd on it.

View File

@ -206,7 +206,7 @@ sub test_file($$;$) {
my ($compiler, $file, $args) = @_;
my $status = 0;
$args //= '';
$status ||= system "$compiler -std=c++14 -o __test_$file ${\CONFIGURE_ROOT}/make/test/$file $args ${\CONFIGURE_ERROR_PIPE}";
$status ||= system "$compiler -std=c++17 -o __test_$file ${\CONFIGURE_ROOT}/make/test/$file $args ${\CONFIGURE_ERROR_PIPE}";
$status ||= system "./__test_$file ${\CONFIGURE_ERROR_PIPE}";
unlink "./__test_$file";
return !$status;

View File

@ -39,7 +39,7 @@
#
CXX = @CXX@ -std=c++14
CXX = @CXX@ -std=c++17
COMPILER = @COMPILER_NAME@
SYSTEM = @SYSTEM_NAME@
BUILDPATH ?= $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/build/@COMPILER_NAME@-@COMPILER_VERSION@

File diff suppressed because it is too large Load Diff

8
vendor/update.toml vendored
View File

@ -13,14 +13,6 @@ files = "http_parser.[ch]"
git = "https://github.com/nodejs/http-parser"
license = "MIT License"
[optional-lite]
author = "Martin Moene"
depth = 2
email = "martin.moene@gmail.com"
files = "include/nonstd/optional.hpp"
git = "https://github.com/martinmoene/optional-lite"
license = "Boost Software License"
[sha2]
author = "Olivier Gay"
email = "olivier.gay@a3.epfl.ch"