Skip to content

Compilation failed under Android 25 #3890

@jimwang118

Description

@jimwang118

When I compile botan under Android, the following error occurs.

src/lib/utils/prefetch.cpp:16:40: error: no member named 'hardware_destructive_interference_size' in namespace 'std'
   const size_t cache_line_size = std::hardware_destructive_interference_size;

It is recommended not to delete the Android macro restrictions in the prefetch.cpp file.
#if defined(__cpp_lib_hardware_interference_size) && !defined(BOTAN_TARGET_OS_IS_ANDROID)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions