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:
@@ -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 ;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user