mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-09 15:50:26 +03:00
C++20 for clang >= 16
This commit is contained in:
parent
911620bcd3
commit
2ee5af0c06
@ -15,7 +15,8 @@ CXXVER := $(shell $(CXX) -dumpversion)
|
||||
ifeq (${CXXVER}, "4.2.1") # older clang always returned 4.2.1
|
||||
$(error Compiler too old)
|
||||
else ifeq ($(shell expr match ${CXXVER} "1[6-9]"),2) # clang 16 - 19
|
||||
NEEDED_CXXFLAGS += -std=c++20
|
||||
NEEDED_CXXFLAGS = -std=c++20
|
||||
else
|
||||
NEEDED_CXXFLAGS = -std=c++17
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user