mirror of
https://git.tukaani.org/xz.git
synced 2025-12-17 10:58:45 +00:00
tuklib_integer/CMake: Log a message about unaligned access check
This commit is contained in:
parent
f7381cf927
commit
26d22ed16b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user