Add support for MSVC2022 (Preview)

2022 should be binary compatibility with previous versions (see
https://docs.microsoft.com/en-us/cpp/porting/binary-compat-2015-2017?view=msvc-160).

Change-Id: I4200f0c7d78adb0d1f352cd527c0f6041a1f5283
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Oliver Wolff
2021-11-03 13:34:47 +01:00
parent b7d0902257
commit 08b6e0239f
5 changed files with 32 additions and 6 deletions

View File

@@ -381,6 +381,7 @@ static ToolChain *msvcToolChain(Id language)
{
ToolChain *toolChain = ToolChainManager::toolChain([language](const ToolChain *t) {
const Abi abi = t->targetAbi();
// TODO: Should Abi::WindowsMsvc2022Flavor be added too?
return (abi.osFlavor() == Abi::WindowsMsvc2017Flavor || abi.osFlavor() == Abi::WindowsMsvc2019Flavor)
&& abi.architecture() == Abi::X86Architecture
&& abi.wordWidth() == 64