From 68b5252dae84c0df9444406d9583ef0c13e91215 Mon Sep 17 00:00:00 2001 From: pajama-coder Date: Thu, 13 Jun 2024 18:13:39 +0800 Subject: [PATCH] [fix] Fixed a crash while linking to rust by avoiding the suspectful culprit tcmalloc in leveldb --- deps/leveldb-1.23/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deps/leveldb-1.23/CMakeLists.txt b/deps/leveldb-1.23/CMakeLists.txt index 846b6c14c..2b7b9bd71 100644 --- a/deps/leveldb-1.23/CMakeLists.txt +++ b/deps/leveldb-1.23/CMakeLists.txt @@ -40,7 +40,9 @@ check_include_file("unistd.h" HAVE_UNISTD_H) include(CheckLibraryExists) check_library_exists(crc32c crc32c_value "" HAVE_CRC32C) check_library_exists(snappy snappy_compress "" HAVE_SNAPPY) -check_library_exists(tcmalloc malloc "" HAVE_TCMALLOC) +# This tcmalloc caused a crash while dynamic-linking to rust +# So we disabled it for the time being +# check_library_exists(tcmalloc malloc "" HAVE_TCMALLOC) include(CheckCXXSymbolExists) # Using check_cxx_symbol_exists() instead of check_c_symbol_exists() because