Add wxGetCpuArchitectureName() for finding out CPU architecture

The returned value is OS-dependent and can be something
like: "x86_64", "x86", "arm64".

Closes https://github.com/wxWidgets/wxWidgets/pull/2121
This commit is contained in:
Lauri Nurmi
2020-11-19 01:02:16 +02:00
committed by Vadim Zeitlin
parent 4bd0cd40f4
commit 493cc3571e
4 changed files with 50 additions and 1 deletions

View File

@@ -991,6 +991,15 @@ bool wxIsPlatform64Bit();
*/
bool wxIsPlatformLittleEndian();
/**
Returns the CPU architecture name. This can be, for example, "x86_64",
"arm64", or "i86pc". The name for the same CPU running on the same
hardware can vary across operating systems.
@since 3.1.5
*/
wxString wxGetCpuArchitectureName();
/**
Returns a structure containing information about the currently running
Linux distribution.