mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
use C++17 for newer versions of clang for BSD
This commit is contained in:
parent
4def0b6ea5
commit
b2aa34baa6
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue