forked from qt-creator/qt-creator
Fix build on PPC: PPC is defined to 1
$ powerpc-poky-linux-gcc -dM -E -xc /dev/null | grep -i PPC #define _ARCH_PPC 1 #define __PPC__ 1 #define __PPC 1 #define PPC 1 Not on PPC64, though (only __PPC__ and __PPC64__ are defined). Change-Id: Ib57b52598e2f452985e9fffd145812f5098e441d Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
43075f5fb1
commit
74fed1d5b7
@@ -888,9 +888,9 @@ QMakeStepConfig::TargetArchConfig QMakeStepConfig::targetArchFor(const Abi &targ
|
||||
arch = QMakeStepConfig::X86_64;
|
||||
} else if (targetAbi.architecture() == ProjectExplorer::Abi::PowerPCArchitecture) {
|
||||
if (targetAbi.wordWidth() == 32)
|
||||
arch = QMakeStepConfig::PPC;
|
||||
arch = QMakeStepConfig::PowerPC;
|
||||
else if (targetAbi.wordWidth() == 64)
|
||||
arch = QMakeStepConfig::PPC64;
|
||||
arch = QMakeStepConfig::PowerPC64;
|
||||
}
|
||||
}
|
||||
return arch;
|
||||
@@ -920,9 +920,9 @@ QStringList QMakeStepConfig::toArguments() const
|
||||
arguments << QLatin1String("CONFIG+=x86");
|
||||
else if (archConfig == X86_64)
|
||||
arguments << QLatin1String("CONFIG+=x86_64");
|
||||
else if (archConfig == PPC)
|
||||
else if (archConfig == PowerPC)
|
||||
arguments << QLatin1String("CONFIG+=ppc");
|
||||
else if (archConfig == PPC64)
|
||||
else if (archConfig == PowerPC64)
|
||||
arguments << QLatin1String("CONFIG+=ppc64");
|
||||
|
||||
// TODO: make that depend on the actual Qt version that is used
|
||||
|
||||
Reference in New Issue
Block a user