forked from qt-creator/qt-creator
Clang: Unify compiler options builders
Make build command the same for all builders. Minimize differences. Change-Id: I1cfe5071b3afb4944ed178fff1e57d3aee45d8a9 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -129,12 +129,12 @@ void RefactoringEngine::SetUp()
|
||||
projectPart = CppTools::ProjectPart::Ptr(new CppTools::ProjectPart);
|
||||
projectPart->files.push_back(projectFile);
|
||||
|
||||
commandLine = Utils::SmallStringVector(ClangCompilerOptionsBuilder::build(
|
||||
projectPart.data(),
|
||||
projectFile.kind,
|
||||
CppTools::CompilerOptionsBuilder::PchUsage::None,
|
||||
ClangCompilerOptionsBuilder clangCOBuilder(*projectPart,
|
||||
CLANG_VERSION,
|
||||
CLANG_RESOURCE_DIR));
|
||||
CLANG_RESOURCE_DIR);
|
||||
commandLine = Utils::SmallStringVector(clangCOBuilder.build(
|
||||
projectFile.kind,
|
||||
CppTools::CompilerOptionsBuilder::PchUsage::None));
|
||||
commandLine.push_back(qStringFilePath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user