Description
At WWDC 2020, Apple announced that macOS will be migrating to "Apple Silicon" over the next couple of years. While Rosetta 2 will exist as an immediate solution to allow the execution of existing x86_64 code on devices with Apple Silicon CPUs, the mid-to-long term plan should be to distribute all native binaries as Universal 2 binaries: executables which contain both x86_64 and Apple Silicon slices:
https://developer.apple.com/documentation/xcode/building_a_universal_macos_binary
All native binaries in the Android SDK & NDK, such as clang
and the linker, presumably need to be built as Universal 2 binaries.
Are there any plans to distribute the NDK as Universal 2 binaries?
Is your feature request related to a problem? Please describe.
Apple will be migrating macOS to a new hardware architecture. It would be nice if it were properly supported before x86 support is dead. (Admittedly not "soon"…)
Describe the solution you'd like
Ship NDK binaries as Universal 2 binaries, containing both x86_64 and Apple Silicon support.
Describe alternatives you've considered
Crying.
Components that need to be made fat
- M1 support in ndk-build script #1410
- M1 LLVM toolchain #1544
- M1 CMake #1545
- M1 Make #1546
- M1 Python #1547
- M1 Ninja #1548
- M1 yasm #1549
- M1 shader-tools #1577
- M1 simpleperf #1584
Won't fix:
- GDB
- GAS
- renderscript