diff options
author | Matthias Doerfel <doerfel@inchron.com> | 2019-05-04 19:51:53 +0300 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2019-05-07 08:41:09 +0000 |
commit | f6238e2d3bd96597a618978175b558d0bdbb3be6 (patch) | |
tree | 0870b2acc5da06f9a7b9c487de166bfd2c02d969 /doc/global | |
parent | b5154b5254950427383c96a382457fa0bb87e69e (diff) |
qmake: Distinguish local header files by directory and name
Information about header files is cached by qmake. The key is the
filename of the #include directive. For system includes (<stdio.h>) this
is unique, according to the search order in INCLUDE_PATH.
For local includes, given as "foo.h", there may be name collisions. Usually a
compiler first searches in the directory of the current file (stored in the
sourceDir variable), and only in case of a miss the INCLUDE_PATH is
considered.
The dependency generation now distinguishes local header files by their full
relative path. This is implemented by forcing the use of the full relative
path as key into the SourceFiles data structure if the flag try_local is set.
Change-Id: Ifd75325b53496824054595f7fc98d71bbd9d8aa6
Fixes: QTBUG-72383
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'doc/global')
0 files changed, 0 insertions, 0 deletions