diff --git a/src/main.cpp b/src/main.cpp index ffe79fc5..49ba536e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,11 +11,11 @@ #include #include #include - #include #include #include #include +#include #include #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"); }