Browse Source

use gexpr instead expr

pull/2101/head
orignal 3 months ago
parent
commit
cab671e177
  1. 2
      Makefile.bsd

2
Makefile.bsd

@ -14,7 +14,7 @@ LDLIBS = -lcrypto -lssl -lz -lpthread -lboost_system -lboost_program_options @@ -14,7 +14,7 @@ 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 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
else
NEEDED_CXXFLAGS = -std=c++17

Loading…
Cancel
Save