2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00

Add default 'iso' value for 'cxxstd-dialect'.

Need a real default value instead of just optional for 'cxstd-dialect'
so that it can be use in command line for multi-variant build requests.
This commit is contained in:
Rene Rivera
2017-10-29 16:36:15 -05:00
parent 2b44ccf5dc
commit b062bf5eee
2 changed files with 6 additions and 5 deletions

View File

@@ -26,9 +26,10 @@ feature.feature cxxstd
# The cxxstd:dialet subfeature indicates if a non-standard dialect should be
# used. These usually have either/or extensions or platform specific
# functionality. Not specifying the dialect will disable any dialect and use
# ANSI C++ Standard conformance.
# functionality. Not specifying the dialect will default to 'iso'. Which will
# attempt to use ISO C++ Standard conformance to the best of the compiler's
# ability.
feature.subfeature cxxstd : dialect
: gnu ms
: optional composite propagated ;
: iso gnu ms
: composite propagated ;

View File

@@ -450,7 +450,7 @@ rule set-cxxstd-options ( targets * : sources * : properties * : action )
switch [ feature.get-values cxxstd-dialect : $(properties) ]
{
case gnu : cxxstd-dialect = gnu++ ;
case * : cxxstd-dialect = c++ ;
case ansi : cxxstd-dialect = c++ ;
}
local option ;
if $(cxxstd) = latest