mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
use gexpr instead expr
This commit is contained in:
parent
2ee5af0c06
commit
cab671e177
@ -14,7 +14,7 @@ LDLIBS = -lcrypto -lssl -lz -lpthread -lboost_system -lboost_program_options
|
|||||||
CXXVER := $(shell $(CXX) -dumpversion)
|
CXXVER := $(shell $(CXX) -dumpversion)
|
||||||
ifeq (${CXXVER}, "4.2.1") # older clang always returned 4.2.1
|
ifeq (${CXXVER}, "4.2.1") # older clang always returned 4.2.1
|
||||||
$(error Compiler too old)
|
$(error Compiler too old)
|
||||||
else ifeq ($(shell expr match ${CXXVER} "1[6-9]"),2) # clang 16 - 19
|
else ifeq ($(shell gexpr match ${CXXVER} "1[6-9]"),2) # clang 16 - 19
|
||||||
NEEDED_CXXFLAGS = -std=c++20
|
NEEDED_CXXFLAGS = -std=c++20
|
||||||
else
|
else
|
||||||
NEEDED_CXXFLAGS = -std=c++17
|
NEEDED_CXXFLAGS = -std=c++17
|
||||||
|
Loading…
Reference in New Issue
Block a user