remove C++17

This commit is contained in:
orignal
2026-09-08 07:35:34 -04:00
parent 4966e30938
commit c7b4e83da9
2 changed files with 4 additions and 5 deletions
+3 -3
View File
@@ -14,9 +14,9 @@ LDLIBS = -lssl -lcrypto -lz -lpthread -lboost_program_options -lboost_json
CXXVER := $(shell $(CXX) -dumpversion|cut -c 1-2)
ifeq (${CXXVER}, "4.") # older clang always returned 4.2.1
$(error Compiler too old)
else ifeq (${CXXVER}, ${filter ${CXXVER},16 17 18 19}) # clang 16 - 19
NEEDED_CXXFLAGS = -std=c++20
else ifeq (${CXXVER}, ${filter ${CXXVER},20 21 22 23}) # clang 20 - 23
NEEDED_CXXFLAGS = -std=c++23
else
NEEDED_CXXFLAGS = -std=c++17
NEEDED_CXXFLAGS = -std=c++20
endif
+1 -2
View File
@@ -19,8 +19,7 @@ endif
else ifeq ($(shell expr match ${CXXVER} "11"),2) # gcc 11
NEEDED_CXXFLAGS += -std=c++20
else ifeq ($(shell expr match ${CXXVER} "12"),2) # gcc 12
# for Debian 12 with boost 1.74
NEEDED_CXXFLAGS += -std=c++17 -Wno-bidi-chars
NEEDED_CXXFLAGS += -std=c++20 -Wno-bidi-chars
else ifeq ($(shell expr match ${CXXVER} "1[3-9]"),2) # gcc 13+
NEEDED_CXXFLAGS += -std=c++23 -Wno-bidi-chars
ifeq ($(TORRENTS),yes)