Also target MacOS 13 for arm64 as MacPorts seems to have lost
its MacOS 12 builder.
Upgrade cctools-port used by osxcross to latest version to let it handle
objective-C constructs used by MacPorts packages.
Also refresh the patches.
Newer Apple SDK expect __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ to be
defined which LLVM before 17 don't do.
By upgrading to newer LLVM, we raise a bug in libpng which has not been
fixed in the version we use.
Finally update osxcross to take the correct compiler-rt branch.
Updating SDK implies to update LLVM to version 16 as it fails to build
with older versions (commit f4be5ed6a3fef0b2b0c60b29e1c0638926638d28).
LLVM version 16 triggers an incompatibility between compiler-rt (which
uses C++17 features) and the old i386 MacOS SDK.
This new compiler-rt also needs CMake helpers and new arguments to
properly build as we wish.
GCW0 toolchain can't be built anymore as Mesa build requires Python 2
which is not available anymore.
Helper packages got upgraded and configure arguments and several
patches must be updated.
New GCC defaults to a too modern C++ version to compile old GCC.
Debian now provides a modern enough CLang hence switching to it.
New SDK uses hardlink tricks in CPIO to compress package better.
When using the extraction filter, the hardlinked files are extracted
badly and files are corrupted
New iPhone SDK needs a really recent LLVM because of Swift related
changes in the headers.
Newer LLVM needs fixes to compiler-rt build process
For iPhone where we need compiler-rt, try several patch versions when
the compiler one is not available (CLang PPA is development build)
Upgrade cctools-port at the same time.
- Update SDK versions using Xcode 12.2
- Add LDID to osxcross as ARM is now supported by MacOSX11.0 SDK
- Upgrade host triples
- Fix a bad copy-paste in platform configuration (x86_64 instead of
i386)