aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmldevtools
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-02-09 10:17:14 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2017-02-09 09:40:58 +0000
commit48da4da700983b62e7a0e660f2a6b2cec0ab9bb2 (patch)
tree859f6780bdab6a8c1ad22a946fcd029eba68dbf9 /src/qmldevtools
parent7cab0a31de5ab67bbe1add88ea6aa27e7bbc4ddc (diff)
Fix MSVC warning about imported symbols when linking qmlcachegen
We don't have anything to export in qmldevtools, not even "autotest" exports. The warning was: qmlcachegen.obj : warning LNK4217: locally defined symbol ??0ExecutableAllocator@QV4@@QEAA@XZ (public: __cdecl QV4::ExecutableAllocator::ExecutableAllocator(void)) imported in function "bool __cdecl compileQmlFile(class QString const &,class QV4::EvalISelFactory *,struct Error *)" (?compileQmlFile@@YA_NAEBVQString@@PEAVEvalISelFactory@QV4@@PEAUError@@@Z) Change-Id: I5be9d905eee90615e2bb52fc110f81f2c558c7e6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/qmldevtools')
-rw-r--r--src/qmldevtools/qtqmldevtoolsglobal_p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qmldevtools/qtqmldevtoolsglobal_p.h b/src/qmldevtools/qtqmldevtoolsglobal_p.h
index 5c803a4b32..e1a01aa78d 100644
--- a/src/qmldevtools/qtqmldevtoolsglobal_p.h
+++ b/src/qmldevtools/qtqmldevtoolsglobal_p.h
@@ -58,5 +58,12 @@ QT_BEGIN_NAMESPACE
#define Q_QML_EXPORT
#define Q_QML_PRIVATE_EXPORT
+/* Some classes built into QtQmlDevTools are marked Q_AUTOTEST_EXPORT but we
+ have nothing to export in this static library */
+#if defined(Q_AUTOTEST_EXPORT)
+#undef Q_AUTOTEST_EXPORT
+#endif
+#define Q_AUTOTEST_EXPORT
+
QT_END_NAMESPACE
#endif // QTQMLGLOBAL_P_H