From c7b4e83da915b0263df0ade4bc7274cf6ddacea6 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 8 Sep 2026 07:35:34 -0400 Subject: [PATCH] remove C++17 --- Makefile.bsd | 6 +++--- Makefile.linux | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile.bsd b/Makefile.bsd index be137bc5..1e5b09ae 100644 --- a/Makefile.bsd +++ b/Makefile.bsd @@ -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 diff --git a/Makefile.linux b/Makefile.linux index 4154d0cc..aee50f0e 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -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)