QtSupport: Adapt Core.json parsing to android_x86

Fixes "Could not determine target architecture" error message.

modules/Core.json of android_x86 Qt installations says
  "architecture": "i386"

This adds "i386" as "x86" alias to getArch.

Change-Id: I769888eae83a6938cacab3ae296b1965b8a453f7
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alessandro Portale
2024-12-01 19:55:52 +01:00
parent 379b421796
commit a3e40cc8e1

View File

@@ -122,7 +122,7 @@ private:
std::pair<Abi::Architecture, int> getArch(const QString &archString)
{
if (archString == "x86")
if (archString == "x86" || archString == "i386")
return std::make_pair(Abi::X86Architecture, 32);
if (archString == "x86_64")
return std::make_pair(Abi::X86Architecture, 64);