mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-23 23:33:45 +02:00
16 lines
570 B
Diff
16 lines
570 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/cmake/SndFileChecks.cmake
|
|
+++ b/cmake/SndFileChecks.cmake
|
|
@@ -168,7 +168,10 @@ endif ()
|
|
|
|
check_symbol_exists (S_IRGRP sys/stat.h HAVE_DECL_S_IRGRP)
|
|
|
|
-test_big_endian (WORDS_BIGENDIAN)
|
|
+string (TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_LOWER)
|
|
+if (NOT SYSTEM_LOWER STREQUAL "emscripten")
|
|
+ test_big_endian (WORDS_BIGENDIAN)
|
|
+endif ()
|
|
if (WORDS_BIGENDIAN)
|
|
set (CPU_IS_BIG_ENDIAN 1)
|
|
else ()
|