Only set QT_ENABLE_GLYPH_CACHE_WORKAROUND on arm

BUG: 463383
This commit is contained in:
Bart De Vries 2023-01-24 10:16:20 +01:00
parent daec40f7c8
commit 9963132d60
1 changed files with 2 additions and 2 deletions

View File

@ -11,11 +11,11 @@
#include <QLoggingCategory>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickStyle>
#include <QQuickView>
#include <QString>
#include <QStringList>
#include <QSysInfo>
#include <QVariant>
#ifdef Q_OS_ANDROID
@ -63,7 +63,7 @@ Q_DECL_EXPORT
int main(int argc, char *argv[])
{
if (qEnvironmentVariableIsEmpty("QT_ENABLE_GLYPH_CACHE_WORKAROUND")) {
if (QSysInfo::currentCpuArchitecture().contains(QStringLiteral("arm")) && qEnvironmentVariableIsEmpty("QT_ENABLE_GLYPH_CACHE_WORKAROUND")) {
qputenv("QT_ENABLE_GLYPH_CACHE_WORKAROUND", "1");
}