From 26d22ed16b6e38ce8ed45cb29076f454cd488762 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 10 Dec 2025 19:20:05 +0200 Subject: [PATCH] tuklib_integer/CMake: Log a message about unaligned access check --- cmake/tuklib_integer.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/tuklib_integer.cmake b/cmake/tuklib_integer.cmake index 3f837446..18facbf4 100644 --- a/cmake/tuklib_integer.cmake +++ b/cmake/tuklib_integer.cmake @@ -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