summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-12-16 14:25:55 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-15 19:28:55 +0100
commit9f304dff71710c9bf6980e04fdc631110f867695 (patch)
treee6ba1e7f80b3e19eb9fd192626871c13002f432f
parent71454fbb13f22d17aba6f8b356061ea6f81aea0b (diff)
downloadqttools-9f304dff71710c9bf6980e04fdc631110f867695.tar.gz
do not look for mkspecs/ directories in project trees
this pretty surprising behavior would interfere with building the examples from an installed qt tree with qmakes from other qt builds. .qmake.conf (and .qmake.cache) files provide a possibility to explicitly "anchor" project roots, so there is no point in having a second, even more magic way to do it. Task-number: QTBUG-35485 Change-Id: I8fd4fda67cabafdf55e7a98282dcdfaffb4a405e Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com> (cherry picked from qtbase/65a676372c533e8b35117081ec0aa1a94e1500e5) Reviewed-by: hjk <hjk121@nokiamail.com>
-rw-r--r--src/linguist/shared/qmakeevaluator.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/linguist/shared/qmakeevaluator.cpp b/src/linguist/shared/qmakeevaluator.cpp
index 08b38414a..c6d7da66d 100644
--- a/src/linguist/shared/qmakeevaluator.cpp
+++ b/src/linguist/shared/qmakeevaluator.cpp
@@ -1102,28 +1102,7 @@ bool QMakeEvaluator::prepareProject(const QString &inDir)
}
no_cache:
- // Look for mkspecs/ in source and build. First to win determines the root.
- QString sdir = inDir;
QString dir = m_outputDir;
- while (dir != m_buildRoot) {
- if ((dir != sdir && QFileInfo(sdir, QLatin1String("mkspecs")).isDir())
- || QFileInfo(dir, QLatin1String("mkspecs")).isDir()) {
- if (dir != sdir)
- m_sourceRoot = sdir;
- m_buildRoot = dir;
- break;
- }
- if (dir == superdir)
- break;
- QFileInfo qsdfi(sdir);
- QFileInfo qdfi(dir);
- if (qsdfi.isRoot() || qdfi.isRoot())
- break;
- sdir = qsdfi.path();
- dir = qdfi.path();
- }
-
- dir = m_outputDir;
forever {
QString stashfile = dir + QLatin1String("/.qmake.stash");
if (dir == (!superdir.isEmpty() ? superdir : m_buildRoot) || m_vfs->exists(stashfile)) {