forked from qt-creator/qt-creator
Clang: Explicitly set the target triple
As for the analyzer, this makes us independent of the default triple and will most likely reduce the maintenance - e.g. the target implies certain internal command line arguments, we will profit from added ones. This fixes parsing of mingw headers with the clang code model. Change-Id: I722b981125a80fac5f62a7af40a83ecdd7bbf811 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -61,6 +61,14 @@ void CompilerOptionsBuilder::addDefine(const QByteArray &defineLine)
|
||||
m_options.append(defineLineToDefineOption(defineLine));
|
||||
}
|
||||
|
||||
void CompilerOptionsBuilder::addTargetTriple()
|
||||
{
|
||||
if (!m_projectPart.targetTriple.isEmpty()) {
|
||||
m_options.append(QLatin1String("-target"));
|
||||
m_options.append(m_projectPart.targetTriple);
|
||||
}
|
||||
}
|
||||
|
||||
void CompilerOptionsBuilder::addHeaderPathOptions()
|
||||
{
|
||||
typedef ProjectPartHeaderPath HeaderPath;
|
||||
|
||||
Reference in New Issue
Block a user