From f6954202121a8993bc48f41ef90caf0c3682706b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 23 May 2024 14:17:56 +0200 Subject: [PATCH] msvc: recognize Visual Studio 2022 v17.10.0, which uses toolchain version 14.40.33807. --- src/tools/msvc.jam | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/msvc.jam b/src/tools/msvc.jam index f56f1cedbc..b0e3e98d64 100644 --- a/src/tools/msvc.jam +++ b/src/tools/msvc.jam @@ -23,6 +23,7 @@ https://docs.microsoft.com/en-us/cpp/[Microsoft Visual C++] command-line tools on Microsoft Windows. The supported products and versions of command line tools are listed below: +* Visual Studio 2022-14.3 * Visual Studio 2019-14.2 * Visual Studio 2017—14.1 * Visual Studio 2015—14.0 @@ -1119,7 +1120,7 @@ local rule generate-setup-cmd ( version : command : parent : options * : cpu : g } else { - if [ MATCH "(14.3)" : $(version) ] + if [ MATCH "(14.[34])" : $(version) ] { if $(.debug-configuration) { @@ -1298,7 +1299,7 @@ local rule configure-really ( version ? : options * ) # version from the path. # FIXME: We currently detect both Microsoft Visual Studio 9.0 and # 9.0express as 9.0 here. - if [ MATCH "(MSVC\\\\14.3)" : $(command) ] + if [ MATCH "(MSVC\\\\14.[34])" : $(command) ] { version = 14.3 ; }