]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
tuklib_integer/CMake: Log a message about unaligned access check
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 10 Dec 2025 17:20:05 +0000 (19:20 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 16 Dec 2025 09:34:22 +0000 (11:34 +0200)
cmake/tuklib_integer.cmake

index 3f8374465cddde175a00e8858cdd360488b8dd4c..18facbf427f7bee7870aa008083801376c340f6c 100644 (file)
@@ -130,6 +130,8 @@ function(tuklib_integer TARGET_OR_ALL)
     # option() command after the if()...endif() block.
     set(FAST_UNALIGNED_GUESS OFF)
     if(NOT DEFINED TUKLIB_FAST_UNALIGNED_ACCESS)
+        message(CHECK_START "Check if unaligned memory access should be used")
+
         # Guess that unaligned access is fast on these archs:
         #   - 32/64-bit x86 / x86-64
         #   - 32/64-bit big endian PowerPC
@@ -255,6 +257,12 @@ function(tuklib_integer TARGET_OR_ALL)
                 set(FAST_UNALIGNED_GUESS ON)
             endif()
         endif()
+
+        if(FAST_UNALIGNED_GUESS)
+            message(CHECK_PASS "yes")
+        else()
+            message(CHECK_PASS "no")
+        endif()
     endif()
 
     option(TUKLIB_FAST_UNALIGNED_ACCESS