summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/archdetect.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-06-13 15:12:28 -0700
committerThiago Macieira <thiago.macieira@intel.com>2014-06-17 17:20:10 +0200
commit5f6af9de48eba5e505dfe67d4ec36cfefdf23da6 (patch)
tree7acf2de8c1fe5d709b2ae8eca02b710c3e961fba /src/corelib/global/archdetect.cpp
parent65a1e1e412445e44215d120b847fa06af0b11c8f (diff)
Add the -qreal option to the Qt ABI information
If -qreal float is passed, fullCpuArchitecture() will now include "-qreal_float". If something else other than "float" is passed to -qreal, we'll try to encode it (e.g., -qreal "fixed<int, 7>"). Change-Id: Ie33fd1a643f4376e6f01a7966e01c7c34e6fcffd Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'src/corelib/global/archdetect.cpp')
-rw-r--r--src/corelib/global/archdetect.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/corelib/global/archdetect.cpp b/src/corelib/global/archdetect.cpp
index a3f05a40db..4697db52bb 100644
--- a/src/corelib/global/archdetect.cpp
+++ b/src/corelib/global/archdetect.cpp
@@ -87,6 +87,13 @@
# define ARCH_POINTER "ilp32"
#endif
+// qreal type, if not double (includes the dash)
+#ifdef QT_COORD_TYPE_STRING
+# define ARCH_COORD_TYPE "-qreal_" QT_COORD_TYPE_STRING
+#else
+# define ARCH_COORD_TYPE ""
+#endif
+
// secondary: ABI string (includes the dash)
#if defined(__ARM_EABI__) || defined(__mips_eabi)
# define ARCH_ABI1 "-eabi"
@@ -111,4 +118,4 @@
#define ARCH_ABI ARCH_ABI1 ARCH_ABI2
-#define ARCH_FULL ARCH_PROCESSOR "-" ARCH_ENDIANNESS "-" ARCH_POINTER ARCH_ABI
+#define ARCH_FULL ARCH_PROCESSOR "-" ARCH_ENDIANNESS "-" ARCH_POINTER ARCH_COORD_TYPE ARCH_ABI