qt5base-lts/qmake/library
Joerg Bornemann 224a60989e Fix determination of source and build roots
QMake searches a .qmake.conf file to determine the source root of the
project, and a .qmake.cache to determine the build root.

If a .qmake.conf exists but no .qmake.cache in the build directory is
found, a build root would be set that is only valid if the build
directory is at the same depth as the source directory.

The invalid build root resulted in the creation of .qmake.cache files
at "interesting" locations (e.g. high up in the directory tree), a
potential cause for even more interesting build failures in the
future.

Fix this by splitting up the loop that determined build and source
root. Both are now determined independently of each other.

Fixes: QTBUG-76140
Change-Id: Ib5c922b87879fcf2f076298a69abcdbc4e8587b3
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2019-06-04 21:19:37 +02:00
..
ioutils.cpp Recognize UNC paths as absolute (i.e. not relative) 2019-02-13 14:15:10 +00:00
ioutils.h qmake: minor fixups to ioutils for building in qt creator context 2018-03-29 18:15:35 +00:00
proitems.cpp qmake: make yet more use of ProString::toQStringRef() 2017-08-26 12:11:35 +00:00
proitems.h qmake: fix return type of toLongLong() 2018-11-21 05:37:02 +00:00
qmake_global.h Updated license headers 2016-01-21 18:55:18 +00:00
qmakebuiltins.cpp qmake: add $$read_registry() function 2019-01-05 20:33:07 +00:00
qmakeevaluator_p.h qmake: make argument validation of built-ins data driven 2018-06-27 17:23:57 +00:00
qmakeevaluator.cpp Fix determination of source and build roots 2019-06-04 21:19:37 +02:00
qmakeevaluator.h qmake: Apply modernize-use-nullptr 2018-08-08 17:30:32 +00:00
qmakeglobals.cpp qmake: skip empty parts when splitting strings in some more places 2018-06-01 09:09:35 +00:00
qmakeglobals.h qmake: updates to the parsing code of external properties 2018-03-29 18:15:29 +00:00
qmakeparser.cpp qmake: fix file id mapping lifetime management 2018-08-24 12:16:37 +00:00
qmakeparser.h qmake: fix file id mapping lifetime management 2018-08-24 12:16:37 +00:00
qmakevfs.cpp Fix crash in qmake parsing 2018-11-29 07:46:02 +00:00
qmakevfs.h Merge remote-tracking branch 'origin/5.11' into 5.12 2018-11-09 10:34:33 +01:00
registry_p.h qmake: add $$read_registry() function 2019-01-05 20:33:07 +00:00
registry.cpp qmake: add $$read_registry() function 2019-01-05 20:33:07 +00:00