Introduce Universal Binaries for macOS #545
Labels
cmake
Tickets specifically relating to the cmake build system.
good first issue
Good for newcomers
mac
Tickets specifically related to MacOS.
proposal
A proposal up for debate.
What is the current behaviour?
Currently, we only target Intel Apple machines and do not cross build for Apple Silicon.
What is the expected behaviour/change?
By setting a CMake flag, we should be able to specify CMake to produce universal binaries for both NovelRT and its dependencies for macOS systems, allowing compatibility on both Apple Silicon and Intel machines without a need to distribute separately.
What is the motivation / use case for changing the behavior?
Allowing for targeting both new and older Mac hardware.
Describe alternatives you've considered:
Distributing separately - would work, but would require cross-compilation efforts or would require interaction from a separate CI ring.
Are there any potential roadblocks or challenges facing this change?
Testing - we'd need an outside contributor with access to a macOS w/ Apple Silicon to test that a sample or the Engine Tests application produced with a Universal Binary is able to function on Apple Silicon (as a maintainer, I can test Apple w/ Intel).
Are there any downsides to implementing this change?
macOS binaries may bloat a little, but should not be much in theory.
Additional context
Stack Overflow explaining the change to make
The text was updated successfully, but these errors were encountered: