Skip to content

Commit

Permalink
use C++17 for newer versions of clang for BSD
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Mar 17, 2024
1 parent 4def0b6 commit b2aa34b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile.bsd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2aa34b

Please sign in to comment.