forked from qt-creator/qt-creator
ProjectExplorer: Allow users to override the gcc target triple
... for the clang code model. Otherwise, it won't work with GCC compilers for architectures clang does not know about. Fixes: QTCREATORBUG-26913 Change-Id: I90115f2f562eae9922b90c500630ccf988542ca3 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -254,7 +254,7 @@ void CompilerOptionsBuilder::addWordWidth()
|
||||
|
||||
void CompilerOptionsBuilder::addTargetTriple()
|
||||
{
|
||||
const QString target = m_explicitTarget.isEmpty()
|
||||
const QString target = m_explicitTarget.isEmpty() || m_projectPart.targetTripleIsAuthoritative
|
||||
? m_projectPart.toolChainTargetTriple : m_explicitTarget;
|
||||
|
||||
// Only "--target=" style is accepted in both g++ and cl driver modes.
|
||||
|
||||
Reference in New Issue
Block a user