diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-09-04 15:52:10 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-09-05 08:39:52 +0000 |
commit | 58e8cf83ed14dde10c3ee64e89544e1a505c535a (patch) | |
tree | 18ad973885942326eb3a061d79cb51f8afa25bab /src/plugins/cpptools/cppcodemodelinspectordumper.cpp | |
parent | 77f6a4321eba9c9d74d93e4668bc5edc3583d35f (diff) | |
download | qt-creator-58e8cf83ed14dde10c3ee64e89544e1a505c535a.tar.gz |
GCC/Clang: Use sysroot from build system if kit doesn't set sysroot
If the kit has a sysroot set, we use that when determining the system
header paths of the tool chain for the code model.
But if the kit doesn't have a sysroot set, we should use the sysroot
setting that we find in the CXX flags that we get from the build system.
In the specific issue, we detect the Clang compiler from the Xcode
installation on macOS, which actually needs to be passed a sysroot to
return sensible system header paths.
Task-number: QTCREATORBUG-18633
Change-Id: Ida401bee8c4b82bb4fa2e6f952b8cc174ea081c6
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppcodemodelinspectordumper.cpp')
0 files changed, 0 insertions, 0 deletions