From acb80534cac798d250ee85812f0e45112f2e4b66 Mon Sep 17 00:00:00 2001 From: Huisheng Liu Date: Mon, 24 Jun 2019 17:36:26 -0700 Subject: [PATCH] Fix build jemalloc api (#5470) Summary: There is a compile error on Windows with MSVC in malloc_stats.cc where malloc_stats_print is referenced. The compiler only knows je_malloc_stats_print from jemalloc.h. Adding JEMALLOC_NO_RENAME replaces malloc_stats_print with je_malloc_stats_print. Pull Request resolved: https://github.com/facebook/rocksdb/pull/5470 Differential Revision: D15978720 fbshipit-source-id: c05757a2e89e2e015a661d9626c352e4f32f97e4 --- thirdparty.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty.inc b/thirdparty.inc index ed9d4c0f8..25ecdab88 100644 --- a/thirdparty.inc +++ b/thirdparty.inc @@ -241,7 +241,7 @@ endif() if (WITH_JEMALLOC) message(STATUS "JEMALLOC library is enabled") - set(JEMALLOC_CXX_FLAGS "-DROCKSDB_JEMALLOC -DJEMALLOC_EXPORT= ") + set(JEMALLOC_CXX_FLAGS "-DROCKSDB_JEMALLOC -DJEMALLOC_EXPORT= -DJEMALLOC_NO_RENAME") if(DEFINED ENV{JEMALLOC_INCLUDE}) set(JEMALLOC_INCLUDE $ENV{JEMALLOC_INCLUDE}) -- GitLab