From 9bf1f147779e6b4a8146a37fe1d4418fffc950b2 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 14 Jan 2019 05:27:24 +0200 Subject: [PATCH] Fix clang version check; the `in` operator is true when $tag is undefined (#379) --- src/tools/common.jam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/common.jam b/src/tools/common.jam index 109ba8552..19eaca51c 100644 --- a/src/tools/common.jam +++ b/src/tools/common.jam @@ -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]) ; }