sdl3: Disable AltiVec optimisations on non-ppc64le

Baselines for 32-bit and big-endian 64-bit POWER don't guarantee it.
This commit is contained in:
OPNA2608
2025-11-20 15:56:49 +01:00
parent 1dcdb7dcba
commit 26ae310f9d
+3
View File
@@ -171,6 +171,9 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "SDL_TESTS" true)
(lib.cmakeBool "SDL_INSTALL_TESTS" true)
(lib.cmakeBool "SDL_DEPS_SHARED" false)
# Only ppc64le baseline guarantees AltiVec
(lib.cmakeBool "SDL_ALTIVEC" (stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian))
]
++
lib.optionals