Skip to content

Commit acb8053

Browse files
hliu18facebook-github-bot
authored andcommitted
Fix build jemalloc api (facebook#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: facebook#5470 Differential Revision: D15978720 fbshipit-source-id: c05757a2e89e2e015a661d9626c352e4f32f97e4
1 parent e731f44 commit acb8053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thirdparty.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ endif()
241241

242242
if (WITH_JEMALLOC)
243243
message(STATUS "JEMALLOC library is enabled")
244-
set(JEMALLOC_CXX_FLAGS "-DROCKSDB_JEMALLOC -DJEMALLOC_EXPORT= ")
244+
set(JEMALLOC_CXX_FLAGS "-DROCKSDB_JEMALLOC -DJEMALLOC_EXPORT= -DJEMALLOC_NO_RENAME")
245245

246246
if(DEFINED ENV{JEMALLOC_INCLUDE})
247247
set(JEMALLOC_INCLUDE $ENV{JEMALLOC_INCLUDE})

0 commit comments

Comments
 (0)