qt5base-lts/qmake/library
Edward Welbourne 58b373c9e3 Make sure $$relative_path() uses an absolute path as its first arg
Thanks to QTBUG-61373, this qmake function was called with
/usr/local/5.10.1 as baseDir, which isn't absolute, leading to an
assertion failure.  We could raise the error within qmake but it
proved easier to simply resolve any non-absolute baseDir using PWD,
before trying to use it as an absolute path.

Did the same for $$absolute_path().  Documented both.  Adjusted the
assert that caught this to report any non-absolute path that upsets
it.  Added simple tests, fixed an existing test.

Task-number: QTBUG-66156
Change-Id: Icfef2e2f5b236e071177c9beffa38d71bf404292
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2018-03-22 08:40:45 +00:00
..
ioutils.cpp Make sure $$relative_path() uses an absolute path as its first arg 2018-03-22 08:40:45 +00:00
ioutils.h Preserve last modification timestamps of installed directories 2017-05-02 10:27:15 +00:00
proitems.cpp qmake: make yet more use of ProString::toQStringRef() 2017-08-26 12:11:35 +00:00
proitems.h Merge remote-tracking branch 'origin/5.9' into dev 2017-08-31 14:31:31 +02:00
qmake_global.h Updated license headers 2016-01-21 18:55:18 +00:00
qmakebuiltins.cpp Make sure $$relative_path() uses an absolute path as its first arg 2018-03-22 08:40:45 +00:00
qmakeevaluator_p.h qmake: make yet more use of ProString::toQStringRef() 2017-08-26 12:11:35 +00:00
qmakeevaluator.cpp Merge remote-tracking branch 'origin/5.9' into dev 2017-08-31 14:31:31 +02:00
qmakeevaluator.h qmake: remove pointless use of raw data in $$[QMAKEFEATURES] access 2017-08-26 12:12:02 +00:00
qmakeglobals.cpp qmake: require a drive in a DOS path for it to be absolute 2018-01-18 13:46:54 +00:00
qmakeglobals.h add a bunch of complementary options to -after 2017-02-06 16:34:17 +00:00
qmakeparser.cpp Change source identifier type in ProString 2017-08-15 10:54:50 +00:00
qmakeparser.h Change source identifier type in ProString 2017-08-15 10:54:50 +00:00
qmakevfs.cpp Merge remote-tracking branch 'origin/5.6' into 5.7 2016-10-01 22:15:55 +02:00
qmakevfs.h Updated license headers 2016-01-21 18:55:18 +00:00