Fix clang version check; the in operator is true when $tag is undefined (#379)

This commit is contained in:
Peter Dimov 2019-01-14 05:27:24 +02:00 committed by Rene Rivera
parent a283d72196
commit 9bf1f14777

View File

@ -976,7 +976,7 @@ local rule toolset-tag ( name : type ? : property-set )
}
# Ditto, from Clang 4
if $(tag) in clang clangw && [ numbers.less 3 $(version[1]) ]
if ( $(tag) = clang || $(tag) = clangw ) && [ numbers.less 3 $(version[1]) ]
{
version = $(version[1]) ;
}