summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2022-08-14 16:28:56 +0000
committerSimon McVittie <smcv@collabora.com>2022-09-21 11:35:05 +0000
commit6933a9263e30e2dbfb36a038660b9387ee632d32 (patch)
tree645ee67bafdb5f4283d63157b820c0c2461c83bf /cmake
parent91f4ac9cf62f8bb99c28ddfa4f376e45fd1b2b94 (diff)
downloaddbus-6933a9263e30e2dbfb36a038660b9387ee632d32.tar.gz
dbus-message.c: skip 1.10 layout compatibility test on new architectures
These static assertions fail on CHERI-enabled architectures such as Arm Morello, where pointers are 128 bits. Architectures with 128-bit pointers were not supported in DBus 1.10, so we can skip the checks for DBus 1.10 structure layout compatibility for architectures with pointer size > 64 bit.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/ConfigureChecks.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake
index bb2f021e..172db213 100644
--- a/cmake/ConfigureChecks.cmake
+++ b/cmake/ConfigureChecks.cmake
@@ -84,6 +84,8 @@ int main() {
}
" DBUS_USE_SYNC)
+set(DBUS_SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P})
+
check_type_size("short" SIZEOF_SHORT)
check_type_size("int" SIZEOF_INT)
check_type_size("long" SIZEOF_LONG)