ProjectExplorer: Do not hardcode X86 architecture for Windows

On Windows Arm64 the aarch64 architecture would be overridden
by X86 and all the kits would be marked as invalid, removing
the ability to create / configure projects.

Change-Id: I3940479792aa5440e9b0ee4a63e868c01738cd90
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Cristian Adam
2022-05-23 17:29:39 +02:00
parent a67aee30a6
commit d76eab7d2f

View File

@@ -606,7 +606,8 @@ Abi Abi::abiFromTargetTriplet(const QString &triple)
} else if (p == "mingw32" || p == "win32"
|| p == "mingw32msvc" || p == "msys"
|| p == "cygwin" || p == "windows") {
arch = X86Architecture;
if (arch == UnknownArchitecture)
arch = X86Architecture;
os = WindowsOS;
flavor = WindowsMSysFlavor;
format = PEFormat;