mkxp-z/subprojects/packagefiles/fluidsynth-emscripten-endian.patch
刘皓 db7853d02d
Use fluidsynth-sans-glib instead of fluidlite in libretro builds
FluidLite plays one of the tracks in the intro sequence of KNight-Blade
incorrectly.
2025-04-07 21:24:27 -04:00

16 lines
574 B
Diff

# Disables checking for endianness when targeting Emscripten because it causes configuration errors, and because we already know Emscripten targets are always little-endian.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -180,7 +180,10 @@ endif ()
include ( TestInline )
include ( TestVLA )
include ( TestBigEndian )
-test_big_endian ( WORDS_BIGENDIAN )
+string ( TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_LOWER )
+if ( NOT SYSTEM_LOWER STREQUAL "emscripten" )
+ test_big_endian ( WORDS_BIGENDIAN )
+endif ()
unset ( LIBFLUID_CPPFLAGS CACHE )
unset ( LIBFLUID_LIBS CACHE )