GCC: Detect also 16-bit width

Change-Id: I6843f6c172954a0f89763a0993c69c9f4ea99a20
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2017-07-25 23:48:05 +03:00
committed by Orgad Shaneh
parent f240abd214
commit 905b9298ed

View File

@@ -280,6 +280,8 @@ static QList<Abi> guessGccAbi(const QString &m, const QByteArray &macros)
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();