summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/qlibrary.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-02-15 10:11:05 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-02-16 01:20:13 +0100
commite7706429bba50256cd12549cef21f8e6b1bea117 (patch)
tree378773f41f4e2aa6ccc8972727c8249fd5e1c92a /src/corelib/plugin/qlibrary.cpp
parent773362fb68ca32a4e58ba93942370e614d516e79 (diff)
QLibrary: add a #warning if the fall-back plugin-meta-data parser is used
Change-Id: I4b42f8dbc9fb03fc6e7243ed4914acfb1bdfe62a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/plugin/qlibrary.cpp')
-rw-r--r--src/corelib/plugin/qlibrary.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp
index ac33f16268..7cb555634c 100644
--- a/src/corelib/plugin/qlibrary.cpp
+++ b/src/corelib/plugin/qlibrary.cpp
@@ -209,6 +209,8 @@ static QLibraryScanResult qt_find_pattern(const char *s, qsizetype s_len, QStrin
return QMachOParser::parse(s, s_len, errMsg);
#elif defined(Q_OS_WIN)
return QCoffPeParser::parse({s, s_len}, errMsg);
+#else
+# warning "Qt does not know how to efficiently parse your platform's binary format; using slow fall-back."
#endif
static constexpr auto matcher = [] {
// QPluginMetaData::MagicString is not NUL-terminated, but