[General] Fix problems with Utils::getArchitectureType()

pull/524/head
David Cernat 6 years ago
parent cb5e24e6c5
commit cb82318c36

@ -192,15 +192,16 @@ std::string Utils::getArchitectureType()
{ {
#if defined(__x86_64__) || defined(_M_X64) #if defined(__x86_64__) || defined(_M_X64)
return "64-bit"; return "64-bit";
#elif defined(__i386__) || defined(_M_I86) #elif defined(__i386__) || defined(_M_I86) || defined(_M_IX86)
return "32-bit"; return "32-bit";
#elif defined(__ARM_ARCH) #elif defined(__ARM_ARCH)
return "ARMv" + __ARM_ARCH; std::string architectureType = "ARMv" + __ARM_ARCH;
#ifdef __aarch64__ #ifdef __aarch64__
return "64-bit"; architectureType = architectureType + " 64-bit";
#else #else
return "32-bit"; architectureType = architectureType + " 32-bit";
#endif #endif
return architectureType;
#else #else
return "Unknown architecture"; return "Unknown architecture";
#endif #endif

Loading…
Cancel
Save