forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user