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:
committed by
Vadim Zeitlin
parent
512f40d614
commit
1ae0037330
@@ -1099,10 +1099,31 @@ bool wxIsPlatformLittleEndian();
|
||||
The returned string may be empty if the CPU architecture couldn't be
|
||||
recognized.
|
||||
|
||||
@see wxGetNativeCpuArchitectureName()
|
||||
|
||||
@since 3.1.5
|
||||
*/
|
||||
wxString wxGetCpuArchitectureName();
|
||||
|
||||
/**
|
||||
In some situations the current process and native CPU architecture may be
|
||||
different. This returns the native CPU architecture 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)
|
||||
|
||||
The returned string may be empty if the CPU architecture couldn't be
|
||||
recognized.
|
||||
|
||||
@see wxGetCpuArchitectureName()
|
||||
|
||||
@since 3.1.6
|
||||
*/
|
||||
wxString wxGetNativeCpuArchitectureName();
|
||||
|
||||
/**
|
||||
Returns a structure containing information about the currently running
|
||||
Linux distribution.
|
||||
|
||||
Reference in New Issue
Block a user