forked from qt-creator/qt-creator
GCC: Detect also 16-bit width
Change-Id: I6843f6c172954a0f89763a0993c69c9f4ea99a20 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
f240abd214
commit
905b9298ed
@@ -280,6 +280,8 @@ static QList<Abi> guessGccAbi(const QString &m, const QByteArray ¯os)
|
|||||||
width = 64;
|
width = 64;
|
||||||
else if (macros.contains("#define __SIZEOF_SIZE_T__ 4"))
|
else if (macros.contains("#define __SIZEOF_SIZE_T__ 4"))
|
||||||
width = 32;
|
width = 32;
|
||||||
|
else if (macros.contains("#define __SIZEOF_SIZE_T__ 2"))
|
||||||
|
width = 16;
|
||||||
int mscVerIndex = macros.indexOf(mscVer);
|
int mscVerIndex = macros.indexOf(mscVer);
|
||||||
if (mscVerIndex != -1) {
|
if (mscVerIndex != -1) {
|
||||||
mscVerIndex += mscVer.length();
|
mscVerIndex += mscVer.length();
|
||||||
|
Reference in New Issue
Block a user