mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
Corrected version checking. A version like 14.2xxx, where xxx is a non-number, has always been allowed to distinguish different setups of the same version or versions that do not differ by version number but do differ in implementation, such as 14.2 and 14.2 preview.
This commit is contained in:
@@ -459,14 +459,14 @@ rule configure-version-specific ( toolset : version : conditions )
|
||||
# 12.0 (VS2013 Update 2) introduced /Zc:inline opt-in standard conformance
|
||||
# compiler flag that also similar to linker /opt:ref removes unreferenced
|
||||
# variables and functions that have internal linkage
|
||||
if ! [ version.version-less [ SPLIT_BY_CHARACTERS $(version) : . ] : 12 ]
|
||||
if ! [ version.version-less [ SPLIT_BY_CHARACTERS [ MATCH "^([0123456789.]+)" : $(version) ] : . ] : 12 ]
|
||||
{
|
||||
toolset.flags $(toolset).compile CFLAGS $(conditions) : "/Zc:inline" ;
|
||||
}
|
||||
|
||||
# 14.0 introduced /Zc:throwingNew opt-in flag that disables a workaround
|
||||
# for not throwing operator new in VC up to 6.0
|
||||
if ! [ version.version-less [ SPLIT_BY_CHARACTERS $(version) : . ] : 14 ]
|
||||
if ! [ version.version-less [ SPLIT_BY_CHARACTERS [ MATCH "^([0123456789.]+)" : $(version) ] : . ] : 14 ]
|
||||
{
|
||||
toolset.flags $(toolset).compile CFLAGS $(conditions) : "/Zc:throwingNew" ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user