Skip to content

Commit

Permalink
[fix] Fixed a crash while linking to rust by avoiding the suspectful …
Browse files Browse the repository at this point in the history
…culprit tcmalloc in leveldb
  • Loading branch information
pajama-coder committed Jun 13, 2024
1 parent ea60b77 commit 68b5252
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deps/leveldb-1.23/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68b5252

Please sign in to comment.