summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Holzammer <andreas.holzammer@kdab.com>2013-10-29 14:50:46 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-29 15:12:20 +0100
commit0731dbcd19e4a6978f50bb6f104df49b81f5e649 (patch)
treeea2a2ab1ece523c1ce48bcf48b8594edfad1091a /src
parent6ea7336e4aed916c5c9602c51d7d9646a289e83b (diff)
Fail when QT_POINTER_SIZE is not set
Some cross compile setups don't have special treatment and don't have a configure check. To notice this early in the build fail at this state. One example is to cross compile from Windows for eg QNX or even linux embedded. If QT_POINTER_SIZE is not set, later v4 build in qtdeclarative is failing with a unmeaningful compile error. Change-Id: Iff9498d916371241b0b044b9543f9cd2946ecf42 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/global/qglobal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index 1d19a6cf6f..c430da80fd 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -198,6 +198,8 @@ typedef quint64 qulonglong;
# define QT_POINTER_SIZE 4
# elif defined(Q_OS_ANDROID)
# define QT_POINTER_SIZE 4 // ### Add auto-detection to Windows configure
+# elif !defined(QT_BUILD_MOC) && !defined(QT_BUILD_QMAKE) && !defined(QT_BUILD_CONFIGURE)
+# error could not determine QT_POINTER_SIZE
# endif
#endif