summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/archdetect.cpp
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2018-12-18 16:41:39 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-04-29 13:49:26 +0000
commit9a6a84731131b205f74b10f866ae212e0895bd4a (patch)
tree7cfa41c8498fe3aa95d58981cfaa4f1dbe9c7ebf /src/corelib/global/archdetect.cpp
parent8059762565d1ed6b7aaee2729d3a637efcd671d5 (diff)
Add RISC-V detection
Change-Id: I0203c88e0944064841c9f6fe9f8a7888d6c421d1 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/archdetect.cpp')
-rw-r--r--src/corelib/global/archdetect.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/global/archdetect.cpp b/src/corelib/global/archdetect.cpp
index 66a5e074f62..1d00b7f5a52 100644
--- a/src/corelib/global/archdetect.cpp
+++ b/src/corelib/global/archdetect.cpp
@@ -67,6 +67,10 @@
# define ARCH_PROCESSOR "power"
#elif defined(Q_PROCESSOR_POWER_64)
# define ARCH_PROCESSOR "power64"
+#elif defined(Q_PROCESSOR_RISCV_32)
+# define ARCH_PROCESSOR "riscv32"
+#elif defined(Q_PROCESSOR_RISCV_64)
+# define ARCH_PROCESSOR "riscv64"
#elif defined(Q_PROCESSOR_S390_X)
# define ARCH_PROCESSOR "s390x"
#elif defined(Q_PROCESSOR_S390)