Fix clang version check; the in
operator is true when $tag is undefined (#379)
This commit is contained in:
parent
a283d72196
commit
9bf1f14777
@ -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]) ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user