mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 00:12:11 +00:00
Warn about unknown cxxstd-dialect values.
This commit is contained in:
@@ -27,6 +27,7 @@ import toolset ;
|
||||
import type ;
|
||||
import unix ;
|
||||
import virtual-target ;
|
||||
import errors ;
|
||||
|
||||
|
||||
if [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ]
|
||||
@@ -446,11 +447,16 @@ rule set-cxxstd-options ( targets * : sources * : properties * : action )
|
||||
local version = [ zero-pad [ on $(targets[1]) return $(VERSION) ] ] ;
|
||||
version = $(version[1]).$(version[2]) ;
|
||||
local cxxstd = [ feature.get-values cxxstd : $(properties) ] ;
|
||||
local cxxstd-dialect ;
|
||||
switch [ feature.get-values cxxstd-dialect : $(properties) ]
|
||||
local cxxstd-dialect = [ feature.get-values cxxstd-dialect : $(properties) ] ;
|
||||
cxxstd-dialect ?= iso ;
|
||||
switch $(cxxstd-dialect)
|
||||
{
|
||||
case gnu : cxxstd-dialect = gnu++ ;
|
||||
case iso : cxxstd-dialect = c++ ;
|
||||
case * :
|
||||
errors.warning Unknown cxxstd-dialect $(cxxstd-dialect:E=?) .. using
|
||||
ISO dialect instead. ;
|
||||
cxxstd-dialect = c++ ;
|
||||
}
|
||||
local option ;
|
||||
if $(cxxstd) = latest
|
||||
|
||||
Reference in New Issue
Block a user