Add wxGetNativeCpuArchitectureName()

This allows to retrieve the native CPU architecture name regardless of
the current process CPU architecture.

Common examples for CPU architecture differences are the following:
    - Win32 process in x64 Windows (WoW)
    - Win32 or x64 process on ARM64 Windows (WoW64)
    - x86_64 process on ARM64 macOS (Rosetta 2)

Closes #22036.
This commit is contained in:
Tobias Taschner
2022-01-21 14:55:49 +01:00
committed by Vadim Zeitlin
parent 512f40d614
commit 1ae0037330
7 changed files with 123 additions and 1 deletions

View File

@@ -156,6 +156,9 @@ WXDLLIMPEXP_BASE bool wxIsPlatform64Bit();
// Get machine CPU architecture
WXDLLIMPEXP_BASE wxString wxGetCpuArchitectureName();
// Get native machine CPU architecture
WXDLLIMPEXP_BASE wxString wxGetNativeCpuArchitectureName();
#ifdef __LINUX__
// Get linux-distro information
WXDLLIMPEXP_BASE wxLinuxDistributionInfo wxGetLinuxDistributionInfo();