mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
C++20 for clang >= 16
This commit is contained in:
parent
d1620d70bb
commit
911620bcd3
|
@ -14,6 +14,8 @@ LDLIBS = -lcrypto -lssl -lz -lpthread -lboost_system -lboost_program_options
|
|||
CXXVER := $(shell $(CXX) -dumpversion)
|
||||
ifeq (${CXXVER}, "4.2.1") # older clang always returned 4.2.1
|
||||
$(error Compiler too old)
|
||||
else # newer versions support C++17
|
||||
else ifeq ($(shell expr match ${CXXVER} "1[6-9]"),2) # clang 16 - 19
|
||||
NEEDED_CXXFLAGS += -std=c++20
|
||||
else
|
||||
NEEDED_CXXFLAGS = -std=c++17
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue