macOS's dylib supports multiple archs in a singe universal dylib file. This enables usage of "upgraded" arch "slices" like x86_64h which includes haswell+ optimizations.
With macOS arm coming up, we should discuss moving dylib to a single universal dylib for simplicity, or doing the same arm split we do for other platforms.
The compiler options would probably look something like -arch arm64 -arch arm64e -arch x86_64 -arch x86_64h
macOS's dylib supports multiple archs in a singe universal dylib file. This enables usage of "upgraded" arch "slices" like x86_64h which includes haswell+ optimizations.
With macOS arm coming up, we should discuss moving dylib to a single universal dylib for simplicity, or doing the same arm split we do for other platforms.
The compiler options would probably look something like
-arch arm64 -arch arm64e -arch x86_64 -arch x86_64h
Further reading: https://developer.apple.com/documentation/xcode/building_a_universal_macos_binary https://stackoverflow.com/questions/45917280/what-is-the-minimum-supported-sse-flag-that-can-be-enabled-on-macos.