mirror of
https://github.com/VibeDarling/darling.git
synced 2026-11-15 09:48:13 -10:00
Top-level CMakeLists.txt:
* detect host arch via uname -m so subsequent project() and the
SDK-platform error message recognise aarch64 hosts.
* add TARGET_ARM64 option, defaulted to ON when host is aarch64
(and i386/x86_64 default to OFF in that case).
cmake helpers:
* architecture.cmake: pick APPLE_ARCH_64BIT="arm64" and the matching
triplets when TARGET_ARM64 is on.
* compiler_include.cmake: arm64 triplet handling for the per-arch
compile flags.
basic-headers/arm/arch.h: thin stub matching the existing x86 layout
so anything that does resolves on arm64 builds.