Enable C++17 by default

Issue #3307
This commit is contained in:
Christian Prochaska 2019-05-06 18:03:35 +02:00 committed by Christian Helmuth
parent 74260c96bf
commit 6af3899bcb

View File

@ -184,7 +184,7 @@ CC_RUSTC_OPT += $(foreach lib,$(LIBS),-L$(LIB_CACHE_DIR)/$(lib))
# We substitute '.' characters by '_' to allow a source-file-specific
# C++ standard option for files with more than one dot in their name.
#
CC_CXX_OPT_STD ?= -std=gnu++11
CC_CXX_OPT_STD ?= -std=gnu++17
CC_CXX_OPT += $(lastword $(CC_CXX_OPT_STD) $(CC_CXX_OPT_STD_$(subst .,_,$*)))
#