We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74ae98b commit c242e6bCopy full SHA for c242e6b
third_party/CMakeLists.txt
@@ -25,6 +25,13 @@ if(BUILD_MIMALLOC)
25
set(MI_BUILD_OBJECT OFF)
26
set(MI_BUILD_TESTS OFF)
27
set(MI_INSTALL_TOPLEVEL ON)
28
+ # Without this flag the resulting arm64 binary won't run on arm8-a devices
29
+ # such as the Raspberry Pi 4.
30
+ # This should probably be `MI_OPT_ARCH OFF` but that doesn't currently seem to
31
+ # work. See: https://github.com/microsoft/mimalloc/issues/1095
32
+ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64|armv[89].?|ARM64)$")
33
+ set(MI_NO_OPT_ARCH ON)
34
+ endif()
35
# Do not show debug and warning messages of the allocator by default.
36
# (They can still be enabled via MIMALLOC_VERBOSE=1 wasm-opt ...)
37
add_compile_definitions(MI_DEBUG=0)
0 commit comments