Browse Source

C++20 for clang >= 16

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

3
Makefile.bsd

@ -15,7 +15,8 @@ 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 expr 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
endif endif

Loading…
Cancel
Save