From 4e9fd729d2e7a5907fe118ff57b5218c27d5e824 Mon Sep 17 00:00:00 2001 From: Mateusz Jakub Fila Date: Mon, 25 Dec 2023 01:38:09 +0100 Subject: [PATCH] added missing finding `HAVE___ATTRIBUTE__ALIGNED_FN` in cmake --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e9b381..9d2e12d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -184,6 +184,12 @@ check_c_source_compiles("#include int main() { return 0; }" HAVE___ATTRIBUTE__) +check_c_source_compiles("#include + void foo(void) __attribute__((aligned(128))); + void foo(void) { exit(1); } + int main() { return 0; }" + HAVE___ATTRIBUTE__ALIGNED_FN) + set(CMAKE_EXTRA_INCLUDE_FILES "malloc.h") check_type_size("struct mallinfo" STRUCT_MALLINFO LANGUAGE CXX) check_type_size("struct mallinfo2" STRUCT_MALLINFO2 LANGUAGE CXX)