qt5-qtbase/Fix-lupdate-command-error-on-loongarch64.patch
dou33 dbd3eb9f8a update to upstream version 5.15.10
(cherry picked from commit a07e0dd88f047591d57aaa45ca64d364dda196aa)
2023-08-24 13:31:24 +08:00

30 lines
974 B
Diff

From 0621699a4b5f9bb74355eb106afb7fe68be6db2a Mon Sep 17 00:00:00 2001
From: Jingyun Hua <huajingyun@loongson.cn>
Date: Thu, 8 Jun 2023 06:23:44 +0000
Subject: [PATCH] Fix lupdate command execution error on loongarch64
Signed-off-by: Jingyun Hua <huajingyun@loongson.cn>
---
src/corelib/global/qprocessordetection.h | 5 +++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/corelib/global/qprocessordetection.h b/src/corelib/global/qprocessordetection.h
index ca9d4080..6f0bc7e7 100644
--- a/src/corelib/global/qprocessordetection.h
+++ b/src/corelib/global/qprocessordetection.h
@@ -225,8 +225,9 @@
// Q_BYTE_ORDER not defined, use endianness auto-detection
#elif defined(__loongarch64)
-# define Q_PROCESSOR_LOONGARCH_64
-# define Q_PROCESSOR_WORDSIZE 8
+# define Q_PROCESSOR_LOONGARCH_64
+# define Q_PROCESSOR_WORDSIZE 8
+# define Q_BYTE_ORDER Q_LITTLE_ENDIAN
/*
MIPS family, known revisions: I, II, III, IV, 32, 64
--
2.33.0