libgdx / gdx-jnigen

jnigen is a small library that can be used with or without libGDX which allows C/C++ code to be written inline with Java source code.
Apache License 2.0
62 stars 25 forks source link

macOS universal dylibs #8

Closed PokeMMO closed 3 years ago

PokeMMO commented 4 years ago

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.

PokeMMO commented 3 years ago

LWJGL3 decided on split dylibs for major archs.