[Scummvm-git-logs] scummvm master -> 8c8b55f4212a0f6324fa9c08baf2431ce73bc5b1

criezy noreply at scummvm.org
Mon May 19 20:23:12 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
8c8b55f421 CONFIGURE: Fix checking endianness with older clang


Commit: 8c8b55f4212a0f6324fa9c08baf2431ce73bc5b1
    https://github.com/scummvm/scummvm/commit/8c8b55f4212a0f6324fa9c08baf2431ce73bc5b1
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2025-05-19T21:22:26+01:00

Commit Message:
CONFIGURE: Fix checking endianness with older clang

Changed paths:
    configure


diff --git a/configure b/configure
index 8014aa52a0d..a95cc0c1e6e 100755
--- a/configure
+++ b/configure
@@ -2723,6 +2723,11 @@ EOF
 # so that the checks below can be done, even with LTO on.
 test "$have_gcc" = yes && no_lto_regular_machine_code_removal=-ffat-lto-objects
 $CXX $LDFLAGS $CXXFLAGS $no_lto_regular_machine_code_removal -o $TMPO$HOSTEXEEXT tmp_endianness_check.cpp >> "$TMPLOG" 2>&1
+# The flag may not exist in some older Clang releases (e.g. "Apple LLVM
+# version 6.0 (based on LLVM 3.5svn)")
+if test "$?" -ne 0 && test "$have_gcc" = yes; then
+	$CXX $LDFLAGS $CXXFLAGS -o $TMPO$HOSTEXEEXT tmp_endianness_check.cpp >> "$TMPLOG" 2>&1
+fi
 if $_strings $TMPO$HOSTEXEEXT 2>> "$TMPLOG"| grep BIGenDianSyS >/dev/null; then
 	_endian=big
 elif $_strings $TMPO$HOSTEXEEXT 2>> "$TMPLOG" | grep LiTTleEnDian >/dev/null; then




More information about the Scummvm-git-logs mailing list