summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/qlibrary.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-08-12 09:17:58 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-08-24 10:36:27 (GMT)
commitaa442648396e1367d6236801c5e1ad36884e4a81 (patch)
tree64a2b45cb8f8d4268f7dae97a1a41bf47c1e5e15 /src/corelib/plugin/qlibrary.cpp
parentae29cdf5cd319e447ef75b11ac1247375c6c8192 (diff)
downloadQt-aa442648396e1367d6236801c5e1ad36884e4a81.zip
Qt-aa442648396e1367d6236801c5e1ad36884e4a81.tar.gz
Qt-aa442648396e1367d6236801c5e1ad36884e4a81.tar.bz2
Introduce a second compatibility build key to Qt.
Some compilers are compatible with one another. In particular, the Intel CC on Unix systems is compatible with g++ on the same system. We should be saving the ABI "name" in the build key, not the compiler name, but it's too late for that. Choose "g++-{VERSION}" as the standard ABI name and make ICC support that. Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/corelib/plugin/qlibrary.cpp')
-rw-r--r--src/corelib/plugin/qlibrary.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp
index 0f99948..a9ae2ab 100644
--- a/src/corelib/plugin/qlibrary.cpp
+++ b/src/corelib/plugin/qlibrary.cpp
@@ -790,10 +790,13 @@ bool QLibraryPrivate::isPlugin(QSettings *settings)
.arg(qt_version&0xff)
.arg(debug ? QLatin1String("debug") : QLatin1String("release"));
} else if (key != QT_BUILD_KEY
+ // we may have some compatibility keys, try them too:
#ifdef QT_BUILD_KEY_COMPAT
- // be sure to load plugins using an older but compatible build key
&& key != QT_BUILD_KEY_COMPAT
#endif
+#ifdef QT_BUILD_KEY_COMPAT2
+ && key != QT_BUILD_KEY_COMPAT2
+#endif
) {
if (qt_debug_component()) {
qWarning("In %s:\n"