macOS: Exclude 32-bit builds by checking pointer size

Task-number: QTBUG-85279
Pick-to: 5.15
Pick-to: 5.12
Change-Id: I984ec21b9c5ed5e2bd02b3a8b52bbeb72953e454
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Tor Arne Vestbø 2020-07-08 13:36:53 +02:00
parent b10f8ba350
commit 17b1c7e6b3
2 changed files with 1 additions and 5 deletions

View File

@ -193,7 +193,7 @@ constexpr backwards_t<R> backwards(R&& r) { return {std::forward<R>(r)}; }
// -------------------------------------------------------------------------
#if !defined(Q_PROCESSOR_X86_64)
#if QT_POINTER_SIZE == 4
#error "32-bit builds are not supported"
#endif

View File

@ -370,10 +370,6 @@ QString qt_mac_removeAmpersandEscapes(QString s)
// -------------------------------------------------------------------------
#if !defined(Q_PROCESSOR_X86_64)
#error "32-bit builds are not supported"
#endif
QOperatingSystemVersion QMacVersion::buildSDK(VersionTarget target)
{
switch (target) {