diff options
author | Kimmo Ollila <kimmo.ollila@qt.io> | 2020-11-11 12:23:53 +0200 |
---|---|---|
committer | Kimmo Ollila <kimmo.ollila@qt.io> | 2020-11-18 12:02:44 +0200 |
commit | e749605ecbe76c392552d0e3a75f47b31bed9ba1 (patch) | |
tree | 3421aff4a3ace9807d4b7aad21c682209d03a858 /src/quickshapes/qquickshapesglobal_p.h | |
parent | 81238e0ff8453f4fb78436ac9bec8452584680ae (diff) |
Avoid GHS linker to optimize away QML type registrations
GHS linker optimizes away QML type registrations despite volatile.
To prevent this we add #pragma ghs reference(s) to avoid such linker
optimization.
Fixes: QTBUG-88033
Change-Id: I7c8983506360710185c37028873234b1464847d5
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quickshapes/qquickshapesglobal_p.h')
-rw-r--r-- | src/quickshapes/qquickshapesglobal_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quickshapes/qquickshapesglobal_p.h b/src/quickshapes/qquickshapesglobal_p.h index 40f6cfbdcf..37386c23b2 100644 --- a/src/quickshapes/qquickshapesglobal_p.h +++ b/src/quickshapes/qquickshapesglobal_p.h @@ -51,6 +51,7 @@ // We mean it. // +#include <QtQml/qqmlextensionplugin.h> #include "qquickshapesglobal.h" QT_BEGIN_NAMESPACE @@ -60,5 +61,6 @@ QT_BEGIN_NAMESPACE QT_END_NAMESPACE void Q_QUICKSHAPES_PRIVATE_EXPORT qml_register_types_QtQuick_Shapes(); +GHS_KEEP_REFERENCE(qml_register_types_QtQuick_Shapes); #endif // QQUICKSHAPESGLOBAL_P_H |