The new darwin utils module contains the following functions:
- find_darwin_sdk_dir - finds SDK paths based on toolchain names (i.e. iphoneos), this is currently implemented as a macro in CMakeLists.txt.
- darwin_get_toolchain_supported_archs - Queries ld for the architectures it supports linking for
- darwin_test_archs - determines which architectures from a set are supported by the toolchain being used.