From 57f02464d9d1f050585b326783b375d2ec5d1463 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 12 Aug 2020 09:57:46 +0200 Subject: [PATCH] [hostinfo] The hackish ARM-detection is only for Linux --- src/modules/hostinfo/HostInfoJob.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/modules/hostinfo/HostInfoJob.cpp b/src/modules/hostinfo/HostInfoJob.cpp index 1d4676f65..789e8fc70 100644 --- a/src/modules/hostinfo/HostInfoJob.cpp +++ b/src/modules/hostinfo/HostInfoJob.cpp @@ -91,17 +91,6 @@ hostCPUmatch( const QString& s ) return QString(); } -static QString -hostCPUmatchARM( const QString& s ) -{ - // Both Rock64 and Raspberry pi mention 0x41 - if ( s.contains( ": 0x41" ) ) - { - return QStringLiteral( "ARM" ); - } - return QString(); -} - #if defined( Q_OS_FREEBSD ) QString hostCPU_FreeBSD() @@ -124,6 +113,17 @@ hostCPU_FreeBSD() #endif #if defined( Q_OS_LINUX ) +static QString +hostCPUmatchARM( const QString& s ) +{ + // Both Rock64 and Raspberry pi mention 0x41 + if ( s.contains( ": 0x41" ) ) + { + return QStringLiteral( "ARM" ); + } + return QString(); +} + QString hostCPU_Linux() {