forked from qt-creator/qt-creator
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user