[MacPorts] #64345: qt6-qtbase fails to build on 10.14
MacPorts
noreply at macports.org
Tue Jan 4 11:31:27 UTC 2022
#64345: qt6-qtbase fails to build on 10.14
-------------------------+--------------------
Reporter: jmroot | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: mojave
Port: qt6-qtbase |
-------------------------+--------------------
Comment (by jmroot):
@available is a runtime check. It allows you to build against a newer SDK
and deploy to an older OS version, but not to build against an older SDK.
To accomplish the latter, you also need to wrap the if statement in a
preprocessor check like so:
{{{
#include <AvailabilityMacros.h>
…
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101500
if (@available(macOS 10.15, *)) {
…
}
#endif
}}}
--
Ticket URL: <https://trac.macports.org/ticket/64345#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list