Enable -std=gnu++20 by default

Issue #4827
This commit is contained in:
Christian Helmuth 2023-05-15 14:29:26 +02:00
parent c3b53bc2ec
commit 4961ee293d

View File

@ -195,7 +195,7 @@ CC_ADA_OPT += $(filter-out -fno-builtin-cos -fno-builtin-sin \
# 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++17
CC_CXX_OPT_STD ?= -std=gnu++20
CC_CXX_OPT += $(lastword $(CC_CXX_OPT_STD) $(CC_CXX_OPT_STD_$(subst .,_,$*)))
#