Clang: Do not use -isystem in ClangCodeModel

Some other logic in the options builder is based
on the -I usage and also we don't want to lock any files
with ClangCodeModel.

Change-Id: I4338abed26e91ebb0a561d449328ea0954fe44ea
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Ivan Donchevskii
2018-09-17 09:23:14 +02:00
parent e507abf6a6
commit 3170d05087

View File

@@ -216,7 +216,9 @@ void CompilerOptionsBuilder::addHeaderPathOptions()
prefix = QLatin1String("-F");
break;
case HeaderPathType::System:
prefix = "-isystem";
prefix = m_useSystemHeader == UseSystemHeader::No
? QLatin1String("-I")
: QLatin1String("-isystem");
break;
default: // This shouldn't happen, but let's be nice..:
// intentional fall-through: