From b2aa34baa6480831bbd4b0f9c1f9e51b79667a83 Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 17 Mar 2024 11:49:14 -0400 Subject: [PATCH] use C++17 for newer versions of clang for BSD --- Makefile.bsd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile.bsd b/Makefile.bsd index 36a5b3bc..14449381 100644 --- a/Makefile.bsd +++ b/Makefile.bsd @@ -7,9 +7,7 @@ CXXFLAGS ?= ${CXX_DEBUG} -Wall -Wextra -Wno-unused-parameter -pedantic -Wno-misl ## -std=c++11. If you want to remove this variable please do so in a way that allows setting ## custom FLAGS to work at build-time. CXXVER := $(shell $(CXX) -dumpversion) -ifneq ($(shell expr match $(CXX) 'clang'),5) - NEEDED_CXXFLAGS = -std=c++11 -else ifeq (${CXXVER}, "4.2.1") # older clang always returned 4.2.1 +ifeq (${CXXVER}, "4.2.1") # older clang always returned 4.2.1 NEEDED_CXXFLAGS = -std=c++11 else # newer versions support C++17 NEEDED_CXXFLAGS = -std=c++17