diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-06-30 16:17:31 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2014-07-30 19:42:55 +0200 |
commit | 4da120192efe79d0dd01178ae2e94e40f7d9c6cf (patch) | |
tree | 2d0ecacde5a332b605169a0409787e859375107c /src/corelib/global/qsysinfo.h | |
parent | bae184532dde3b8d46bd90d060377ab06dc62644 (diff) |
Add QSysInfo::currentCpuArchitecture()
buildCpuArchitecture() returns the CPU Qt was built for, while this
function returns the CPU that Qt is running on -- if the OS was kind
enough to tell us.
Change-Id: Ib27937e3ff028cb500d263c4921ef00d3a567715
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qsysinfo.h')
-rw-r--r-- | src/corelib/global/qsysinfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/global/qsysinfo.h b/src/corelib/global/qsysinfo.h index 45d54c3873..e9a30b5bc3 100644 --- a/src/corelib/global/qsysinfo.h +++ b/src/corelib/global/qsysinfo.h @@ -167,6 +167,7 @@ public: #endif static QString buildCpuArchitecture(); + static QString currentCpuArchitecture(); static QString buildAbi(); static QString osType(); static QString osKernelVersion(); |