forked from qt-creator/qt-creator
Build fix
Change-Id: I2cef68b757d6f0affd21151a7f59029dce814c95 Reviewed-on: http://codereview.qt-project.org/4485 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
aaf260c04b
commit
5eb4c8a301
@@ -412,10 +412,14 @@ QString GccToolChain::mkspec() const
|
||||
return QLatin1String("macx-g++");
|
||||
}
|
||||
|
||||
Abi gccAbi = Abi::abisOfBinary(m_compilerPath);
|
||||
if (gccAbi.architecture() != abi.architecture()
|
||||
|| gccAbi.os() != abi.os()
|
||||
|| gccAbi.osFlavor() != abi.osFlavor()) {
|
||||
QList<Abi> gccAbiList = Abi::abisOfBinary(m_compilerPath);
|
||||
Abi gccAbi;
|
||||
if (!gccAbiList.isEmpty())
|
||||
gccAbi = gccAbiList.first();
|
||||
if (!gccAbi.isNull()
|
||||
&& (gccAbi.architecture() != abi.architecture()
|
||||
|| gccAbi.os() != abi.os()
|
||||
|| gccAbi.osFlavor() != abi.osFlavor())) {
|
||||
// Note: This can fail:-(
|
||||
return QString(); // this is a cross-compiler, leave the mkspec alone!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user