From ed9684c09050cc88a44a7a9e4e403f56db3aff0e Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Sat, 18 May 2024 19:34:07 +0200 Subject: [PATCH] build: disable USE_JEMALLOC on macOS for now --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7cbaa2c0..276d58f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,12 @@ else() option(ENABLE_TSAN "enable thread sanitizer" OFF) option(ENABLE_UBSAN "enable undefined behaviour sanitizer" OFF) option(ENABLE_COVERAGE "enable code coverage" OFF) - option(USE_JEMALLOC "build with jemalloc" ON) + if(APPLE) + # This doesn't work reliably on macOS at the moment + set(USE_JEMALLOC OFF) + else() + option(USE_JEMALLOC "build with jemalloc" ON) + endif() option(PREFER_SYSTEM_GTEST "use system gtest if available" OFF) option(DISABLE_CCACHE "disable ccache" OFF) option(DISABLE_MOLD "disable mold" OFF)